setSimpleGreedyForComposed still buggy in ruta latest version
We are getting OOM issues for one of the ruta scripts and text. On part of this we tried enabling the flag simpleGreedyForComposed and tried out and saw our existing test cases failing.
- One of the batch of texts test case getting stuck and no movement.
- one of the text(which has 13 email ids) with attached email ruta is getting below error:
java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "match" is null at org.apache.uima.ruta.rule.ComposedRuleElement.continueOwnMatch(ComposedRuleElement.java:387) ~[ruta-core-3.3.0.jar:?] at org.apache.uima.ruta.rule.ComposedRuleElement.fallbackContinue(ComposedRuleElement.java:479) ~[ruta-core-3.3.0.jar:?] at org.apache.uima.ruta.rule.ComposedRuleElement.startMatch(ComposedRuleElement.java:112) ~[ruta-core-3.3.0.jar:?] at org.apache.uima.ruta.rule.ComposedRuleElement.startMatch(ComposedRuleElement.java:79) ~[ruta-core-3.3.0.jar:?] at org.apache.uima.ruta.rule.ComposedRuleElement.startMatch(ComposedRuleElement.java:79) ~[ruta-core-3.3.0.jar:?] at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:72) ~[ruta-core-3.3.0.jar:?] at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:63) ~[ruta-core-3.3.0.jar:?] at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:42) ~[ruta-core-3.3.0.jar:?] at org.apache.uima.ruta.block.RutaScriptBlock.apply(RutaScriptBlock.java:74) ~[ruta-core-3.3.0.jar:?]
Email ruta is:
DocumentAnnotation{-> RETAINTYPE(SPACE)};
((W|NUM) (W|NUM)[0,1])+ "@" W+? PERIOD+? W{REGEXP("(?i)([a-zA-Z]{3}|[a-zA-Z]{2})") -> MARK(EntityType,1,5)};
((W|NUM) (W|NUM)[0,1])+ "@" W[0,1]? PERIOD[0,1]? W+? PERIOD+? W{REGEXP("(?i)([a-zA-Z]{3}|[a-zA-Z]{2})") -> MARK(EntityType,1,7)};
((W|NUM)+ ("."|"_") )+ (W|NUM)+ "@" W+? PERIOD+? W{REGEXP("(?i)([a-zA-Z]{3}|[a-zA-Z]{2})") -> MARK(EntityType,1,6)};
((W|NUM)+ ("."|"_") )+ (W|NUM)+ "@" W[0,1]? PERIOD[0,1]? W+? PERIOD+? W{REGEXP("(?i)([a-zA-Z]{3}|[a-zA-Z]{2})") -> MARK(EntityType,1,8)}
masked text is:
[email protected] is my email id or [email protected] or [email protected] or [email protected] or [email protected] or [email protected] my name is Joe. My email id is [email protected]. My email id is [email protected]. My email id is [email protected]. My email id is also [email protected] my new email id is [email protected] and my alternate email ids are [email protected], [email protected], [email protected]
@pkluegl need your assistance on above