Hi,
I use RUTA and I want to delete an annotation if it is within the first
50 tokens of a document. I came up with the following rules :
ANY{POSITION(Document, 1)-> Header}; // Annotate the
first token in the document
Header{->SHIFT(Header, 1, 2)} ANY[0,49]; // Appends the
49 following tokens
ToDelete{POSITION(Header, 1) -> UNMARK(ToDelete)};// Delete the
first ToDelete if it is within the header
These rules work as expected but they are *really* slow. Is there a
faster way to achieve that?
Thanks,
Alexandre
--
Alexandre Patry, Ph.D
Chercheur / Researcher
http://KeaText.com
Transformez vos documents en outils de décision
<< Turn your documents into decision tools