uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl <pklu...@uni-wuerzburg.de>
Subject Re: Ruta 2.0.1
Date Mon, 16 Sep 2013 14:52:04 GMT
Hi,

the wildcard # has some bugs in ruta 2.0.1, which have been fixed in
ruta-2.1.0.

It's hard to determine what the problem is. I created a small test set
in ruta-2.1.0 and tested the rule. No problems observed. You might want
to switch to ruta-2.1.0. There is a release candidate with an update site:

https://dist.apache.org/repos/dist/dev/uima/eclipse-update-site/composite-update-site/2


Let me know if there are still some problems.

Best,

Peter

On 16.09.2013 16:30, Sondes Bannour wrote:
> Hi Peter,
>
> I am trying to apply this rule on a text annotated with a Token type:
>
> Token #{->MARKONCE(Détention1)} Token;
>
> and i am getting this error message:
>
> org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator
> processing failed.
>     at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:279)
>     at
> org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
>     at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:375)
>     at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:296)
>     at
> org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267)
>     at
> org.apache.uima.ruta.ide.launching.RutaLauncher.processFile(RutaLauncher.java:152)
>     at
> org.apache.uima.ruta.ide.launching.RutaLauncher.main(RutaLauncher.java:119)
> Caused by: java.lang.NullPointerException
>     at
> org.apache.uima.ruta.rule.RutaTypeMatcher.getAnnotationsAfter(RutaTypeMatcher.java:93)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.getNextAnnotations(RutaRuleElement.java:373)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.continueMatch(RutaRuleElement.java:192)
>     at
> org.apache.uima.ruta.rule.WildCardRuleElement.tryWithNextType(WildCardRuleElement.java:244)
>     at
> org.apache.uima.ruta.rule.WildCardRuleElement.tryWithNextRuleElement(WildCardRuleElement.java:84)
>     at
> org.apache.uima.ruta.rule.WildCardRuleElement.continueMatch(WildCardRuleElement.java:64)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.startMatch(RutaRuleElement.java:79)
>     at
> org.apache.uima.ruta.rule.ComposedRuleElement.startMatch(ComposedRuleElement.java:58)
>     at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:47)
>     at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:40)
>     at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:29)
>     at org.apache.uima.ruta.RutaScriptBlock.apply(RutaScriptBlock.java:63)
>     at org.apache.uima.ruta.RutaModule.apply(RutaModule.java:48)
>     at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:277)
>     ... 6 more
>
> Exception in thread "main"
> org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator
> processing failed.
>     at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:279)
>     at
> org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
>     at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:375)
>     at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:296)
>     at
> org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267)
>     at
> org.apache.uima.ruta.ide.launching.RutaLauncher.processFile(RutaLauncher.java:152)
>     at
> org.apache.uima.ruta.ide.launching.RutaLauncher.main(RutaLauncher.java:119)
> Caused by: java.lang.NullPointerException
>     at
> org.apache.uima.ruta.rule.RutaTypeMatcher.getAnnotationsAfter(RutaTypeMatcher.java:93)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.getNextAnnotations(RutaRuleElement.java:373)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.continueMatch(RutaRuleElement.java:192)
>     at
> org.apache.uima.ruta.rule.WildCardRuleElement.tryWithNextType(WildCardRuleElement.java:244)
>     at
> org.apache.uima.ruta.rule.WildCardRuleElement.tryWithNextRuleElement(WildCardRuleElement.java:84)
>     at
> org.apache.uima.ruta.rule.WildCardRuleElement.continueMatch(WildCardRuleElement.java:64)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.startMatch(RutaRuleElement.java:79)
>     at
> org.apache.uima.ruta.rule.ComposedRuleElement.startMatch(ComposedRuleElement.java:58)
>     at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:47)
>     at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:40)
>     at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:29)
>     at org.apache.uima.ruta.RutaScriptBlock.apply(RutaScriptBlock.java:63)
>     at org.apache.uima.ruta.RutaModule.apply(RutaModule.java:48)
>     at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:277)
>     ... 6 more
>
>
> Do you know what is the problem?
>
> Best regards
> Sondes
>


Mime
View raw message