Ruta rule timeout

2017-08-02 Thread Tom Vacek
I'm running Ruta as an annotator in a more complex pipeline that interleaves Ruta steps and other annotators. I'm seeing some Ruta rules hang the engine. I can fix bad rules manually, but a crash of the entire system is not acceptable. Is there a way to put a time out on the rule application? A

Ruta COUNT issue

2017-08-11 Thread Tom Vacek
Assume I have made PositiveContext and NegativeContext annotations from a word list. I would like a wildcard rule that allows any number of PositiveContext tokens, some (eg 4) unknown tokens, but no NegativeContext tokens. I have this rule: INT contextCount; (Keyword1 #{COUNT(PositiveContext,0,1