Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFA4F10F69 for ; Mon, 16 Sep 2013 14:52:40 +0000 (UTC) Received: (qmail 32580 invoked by uid 500); 16 Sep 2013 14:52:37 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 31899 invoked by uid 500); 16 Sep 2013 14:52:36 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 30378 invoked by uid 99); 16 Sep 2013 14:52:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Sep 2013 14:52:32 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [132.187.3.35] (HELO mailrelay.rz.uni-wuerzburg.de) (132.187.3.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Sep 2013 14:52:26 +0000 Received: from virusscan-slb.rz.uni-wuerzburg.de (localhost [127.0.0.1]) by mailrelay-slb.rz.uni-wuerzburg.de (Postfix) with ESMTP id B6D5E7B362 for ; Mon, 16 Sep 2013 16:52:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan-slb.rz.uni-wuerzburg.de (Postfix) with ESMTP id B53D37B228 for ; Mon, 16 Sep 2013 16:52:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-wuerzburg.de Received: from mailmaster.uni-wuerzburg.de ([10.101.19.2]) by localhost (vmail001.slb.uni-wuerzburg.de [10.101.19.141]) (amavisd-new, port 10225) with ESMTP id tffv3L6ilx2p for ; Mon, 16 Sep 2013 16:52:04 +0200 (CEST) Received: from [132.187.15.93] (win6093.informatik.uni-wuerzburg.de [132.187.15.93]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTPSA id 9E46D772CB for ; Mon, 16 Sep 2013 16:52:04 +0200 (CEST) Message-ID: <52371B14.2090504@uni-wuerzburg.de> Date: Mon, 16 Sep 2013 16:52:04 +0200 From: =?ISO-8859-1?Q?Peter_Kl=FCgl?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Ruta 2.0.1 References: In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org 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 >