[CWB] How to use int() to get all the sentences with a numeric positional attribute higher then some value
José Manuel Martínez Martínez
chozelinek at gmail.com
Tue May 31 17:07:07 CEST 2022
Hi,
I have a corpus for which each sentence we have an structural attribute
s_lsent_linguistic_features that can have a value from 0 to 1.
I want to filter the sentences with a value lower than 0.3.
I've seen in the documentation that one can use the int built-in function
to make comparisons with values that should be interpreted as numbers.
I'm using something like this
<s>[_.s_sent_quality_score = "0\.[1|2|3].*"]
But I was wondering, whether using the int built-in function it could be
written in a better/easier way.
Thanks!
--
José Manuel Martínez Martínez
https://chozelinek.github.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20220531/d0b796ee/attachment.html>
More information about the CWB
mailing list