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 15:29:57 GMT
Hi,

that looks like the type cannot be resolved.

Can you provide a small test for reproducing the problem?

Best,

Peter


On 16.09.2013 17:27, Sondes Bannour wrote:
> I managed to get the new descriptors but still have problems (it seems that
> it's nor the same problem as before but in the same class):
>
> org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator
> processing failed.
>     at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:437)
>     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:378)
>     at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:298)
>     at
> org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267)
>     at
> org.apache.uima.ruta.ide.launching.RutaLauncher.processFile(RutaLauncher.java:164)
>     at
> org.apache.uima.ruta.ide.launching.RutaLauncher.main(RutaLauncher.java:125)
> Caused by: java.lang.NullPointerException
>     at
> org.apache.uima.ruta.rule.RutaTypeMatcher.getType(RutaTypeMatcher.java:286)
>     at
> org.apache.uima.ruta.rule.RutaTypeMatcher.getTypes(RutaTypeMatcher.java:301)
>     at
> org.apache.uima.ruta.rule.RutaTypeMatcher.getMatchingAnnotations(RutaTypeMatcher.java:61)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.getAnchors(RutaRuleElement.java:50)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.startMatch(RutaRuleElement.java:57)
>     at
> org.apache.uima.ruta.rule.ComposedRuleElement.startMatch(ComposedRuleElement.java:73)
>     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:435)
>     ... 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:437)
>     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:378)
>     at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:298)
>     at
> org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267)
>     at
> org.apache.uima.ruta.ide.launching.RutaLauncher.processFile(RutaLauncher.java:164)
>     at
> org.apache.uima.ruta.ide.launching.RutaLauncher.main(RutaLauncher.java:125)
> Caused by: java.lang.NullPointerException
>     at
> org.apache.uima.ruta.rule.RutaTypeMatcher.getType(RutaTypeMatcher.java:286)
>     at
> org.apache.uima.ruta.rule.RutaTypeMatcher.getTypes(RutaTypeMatcher.java:301)
>     at
> org.apache.uima.ruta.rule.RutaTypeMatcher.getMatchingAnnotations(RutaTypeMatcher.java:61)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.getAnchors(RutaRuleElement.java:50)
>     at
> org.apache.uima.ruta.rule.RutaRuleElement.startMatch(RutaRuleElement.java:57)
>     at
> org.apache.uima.ruta.rule.ComposedRuleElement.startMatch(ComposedRuleElement.java:73)
>     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:435)
>     ... 6 more
>
>
> Sondes
>
>
> 2013/9/16 Peter Klügl <pkluegl@uni-wuerzburg.de>
>
>> Hi,
>>
>> there is a popup command for updating ruta projects: right-click on the
>> ruta project -> UIMA Ruta -> Update project. This command replaces the
>> old descriptors. You may need to clean the project and build all
>> descriptors again.
>>
>> You can also create a new UIMA Ruta project and use those descriptors.
>>
>> Best,
>>
>> Peter
>>
>>
>>
>>
>> On 16.09.2013 17:11, Sondes Bannour wrote:
>>> Can you send me a standard BasicEngine because i switched to Ruta 2.1.0
>> and
>>> i am getting an error like:
>>>
>>> Exception in thread "main" org.apache.uima.util.InvalidXMLException:
>>> Invalid descriptor at
>>> file:/home/sondes/workspace/SemAnnot/descriptor/ruta/scriptEngine.xml.
>>>     at
>>> org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:196)
>>>     at
>>>
>> org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier(XMLParser_impl.java:376)
>>>     at
>>>
>> org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier(XMLParser_impl.java:357)
>>>     at org.apache.uima.ruta.engine.Ruta.wrapAnalysisEngine(Ruta.java:97)
>>>     at
>>>
>> org.apache.uima.ruta.ide.launching.RutaLauncher.main(RutaLauncher.java:119)
>>> Caused by: org.apache.uima.util.InvalidXMLException: No configuration
>>> parameter with name additionalUimafitEngines is declared in component
>>> "BasicEngine".
>>>     at
>>>
>> org.apache.uima.resource.metadata.impl.ResourceMetaData_impl.buildFromXMLElement(ResourceMetaData_impl.java:387)
>>>     at
>>>
>> org.apache.uima.util.impl.XMLParser_impl.callBuildFromXMLElement(XMLParser_impl.java:304)
>>>     at
>>>
>> org.apache.uima.util.impl.XMLParser_impl.buildObjectOrPrimitive(XMLParser_impl.java:340)
>>>     at
>>>
>> org.apache.uima.resource.metadata.impl.MetaDataObject_impl.readUnknownPropertyValueFromXMLElement(MetaDataObject_impl.java:1162)
>>>     at
>>>
>> org.apache.uima.resource.metadata.impl.MetaDataObject_impl.buildFromXMLElement(MetaDataObject_impl.java:979)
>>>     at
>>>
>> org.apache.uima.analysis_engine.impl.AnalysisEngineDescription_impl.buildFromXMLElement(AnalysisEngineDescription_impl.java:903)
>>>     at
>>>
>> org.apache.uima.util.impl.XMLParser_impl.callBuildFromXMLElement(XMLParser_impl.java:304)
>>>     at
>>>
>> org.apache.uima.util.impl.XMLParser_impl.buildObject(XMLParser_impl.java:293)
>>>     at
>>>
>> org.apache.uima.util.impl.SaxDeserializer_impl.getObject(SaxDeserializer_impl.java:127)
>>>     at
>>> org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:187)
>>>     ... 4 more
>>> Caused by: org.apache.uima.resource.ResourceConfigurationException: No
>>> configuration parameter with name additionalUimafitEngines is declared in
>>> component "BasicEngine".
>>>     at
>>>
>> org.apache.uima.resource.metadata.impl.ResourceMetaData_impl.validateConfigurationParameterSettings(ResourceMetaData_impl.java:293)
>>>     at
>>>
>> org.apache.uima.resource.metadata.impl.ResourceMetaData_impl.validateConfigurationParameterSettings(ResourceMetaData_impl.java:243)
>>>     at
>>>
>> org.apache.uima.resource.metadata.impl.ResourceMetaData_impl.buildFromXMLElement(ResourceMetaData_impl.java:385)
>>>     ... 13 more
>>>
>>>
>>> 2013/9/16 Peter Klügl <pkluegl@uni-wuerzburg.de>
>>>
>>>> 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