uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sondes Bannour <sondes.bann...@gmail.com>
Subject Re: Ruta 2.0.1
Date Mon, 16 Sep 2013 15:11:51 GMT
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
> >
>
>


-- 
Sondes BANNOUR

LIPN - CNRS UMR 7030              Tel.   01 49 40 40 82
Université Paris 13                      Fax.  01 48 26 07 12
99, av. J-B. Clement                    Email:
sondes.bannour@lipn.univ-paris13.fr
93430 Villetaneuse FRANCE       http://www-lipn.univ-paris13.fr/~bannour/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message