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!
>