uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kl├╝gl <peter.klu...@averbis.com>
Subject Re: Ruta: delete some annotation whose text length is smaller than n?
Date Fri, 26 Jun 2015 14:53:27 GMT
Hi,

I would normally say:
MyAnnotation{(MyAnnotation.end - MyAnnotation.begin) < 2 ->
UNMARK(MyAnnotation)};
... but there is a bug (UIMA-4472), which prevent the rule to work
correctly.

I fixed it in the current trunk and it works now.

I use to write rules like the following because they are shorter:
MyAnnotation{REGEXP(".") -> UNMARK(MyAnnotation)};

Best,

Peter

Am 26.06.2015 um 10:23 schrieb Renaud Richardet:
> How can I delete some annotation whose text length is smaller than n? I
> tried:
>
> MyAnnotation{IF((end-begin) < 2)->DEL};
>
> but no luck so far. Thanks!
>


Mime
View raw message