Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C31EC200B7C for ; Thu, 8 Sep 2016 13:16:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C1BA5160ABD; Thu, 8 Sep 2016 11:16:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B704F160AA5 for ; Thu, 8 Sep 2016 13:16:03 +0200 (CEST) Received: (qmail 51875 invoked by uid 500); 8 Sep 2016 11:16:02 -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 Delivered-To: moderator for user@uima.apache.org Received: (qmail 59470 invoked by uid 99); 8 Sep 2016 10:19:54 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=crimsoni.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crimsoni.com; s=google; h=to:from:subject:message-id:date:user-agent:mime-version; bh=WPFrI/EWcu8XYHhg4ynN8cA0qs4ECcji2udLKuX/0fA=; b=QY0RkEjTCkLMILChxz9sj8E0PLQPLejLso1WoNC0SYdFvJ8OM4ywHYB1hpP6W+64IM OxeFS/+VyvFaHNQFHd4o25rKjdmN5USXqfLTJ8Klk3K3U2zf3PcmSBUTyxg00Hf9u1yJ K+fJe2UHpmpuKMReOjRn/wL0wqr64BZRCSAsA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=WPFrI/EWcu8XYHhg4ynN8cA0qs4ECcji2udLKuX/0fA=; b=FTkku1Eh4K5l2NL0eHJIjqpkaM+nLQrLG7Xukzdh0CI0KwYgsMgjVySUUbANaAUvwX CthOeyStlDjpg0uL71y5SGovMAD6iljTEkZpfUTYLcxHKu59Oblaatd0juBcBfQjOjBu uytcenrZCwVxenS2cCOw/TjpmT2WSEJ4FNOgKhfPkJmvhh0dz4DehbCKTScdzE5aT3ox JZHOmy/55F+a0oohfl8fAy9YfkybFfMce3n+8MPAPlCVVahO+XeQGwl15G8CX+1B5Oo4 JspOCyAEQnmSpCIrNMD288kLtCVInvKE0/e1K5C5tpjVe4Zp+5eJtdAZvcJH35hLnBnz 8c+g== X-Gm-Message-State: AE9vXwPKmR2lvAoJVUffSU3kwrftteDq15wjMrb6SyP20TWGeMmjgTxCWhc5r26FeByPLyhHXYjQoUBxQ5TOQemPW290ZWnctGDzSM6r6wwM5AWTdtswykLV9grfjuxGlirDK9Qubm2wdQLmfpgjIajuLohFcXhXPiLOGoVokXAgJzpEZujxZ1fC9vULSwpXFzeq+5TVeTWVNQ6mJQoSn+tC4LQyzQ== X-Received: by 10.36.41.205 with SMTP id p196mr15069841itp.76.1473329980685; Thu, 08 Sep 2016 03:19:40 -0700 (PDT) X-Relaying-Domain: crimsoni.com To: user@uima.apache.org From: Himanshu Shivhare-Crimson Interactive Subject: UIMA RUTA script with stringfunctions doesnt work when executing from UIMA-Fit Message-ID: Date: Thu, 8 Sep 2016 15:49:34 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------D4EA18C81BE29619FCD00989" archived-at: Thu, 08 Sep 2016 11:16:04 -0000 --------------D4EA18C81BE29619FCD00989 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, I am trying to execute a simple example Ruta script (from the documentation) from a UIMA fit pipeline with some DKPro annotators. |STRING s; BOOLEAN a; STRING s2 = "LAuGH"; DECLARE Test; BLOCK(forEACH) W{}{ W{->MATCHEDTEXT(s), ASSIGN(a,equals(s,s2))}; W{->MATCHEDTEXT(s), ASSIGN(a,equalsIgnoreCase(s,s2))}; W{a ->Test}; } | This script works fine when executing it as a standalone script with a separate RUTA project and the Test annotation is created. However, in a java project with a UIMA fit pipeline, I get the following error: |Sep 08, 2016 1:49:14 PM de.tudarmstadt.ukp.dkpro.core.api.io.ResourceCollectionReaderBase scan(393) INFO: Scanning [file:/home/himanshu_shivhare/workspace/annotate_ruta_example-master/src/main/resources/data/] Sep 08, 2016 1:49:14 PM de.tudarmstadt.ukp.dkpro.core.api.io.ResourceCollectionReaderBase initialize(224) INFO: Found [1] resources to be read Exception in thread "main" org.apache.uima.resource.ResourceInitializationException: Initialization of annotator class "org.apache.uima.ruta.engine.RutaEngine" failed. (Descriptor: ) at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:271) at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize(PrimitiveAnalysisEngine_impl.java:170) at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94) at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62) at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:279) at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:407) at org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:256) at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(AggregateAnalysisEngine_impl.java:429) at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:373) at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:186) at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94) at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62) at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:279) at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:331) at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:448) at org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine(AnalysisEngineFactory.java:205) at org.apache.uima.fit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:82) at example.Annotate.main(Annotate.java:49) Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.file_input(RutaParser.java:726) at org.apache.uima.ruta.engine.RutaEngine.loadScript(RutaEngine.java:1087) at org.apache.uima.ruta.engine.RutaEngine.initializeScript(RutaEngine.java:756) at org.apache.uima.ruta.engine.RutaEngine.initialize(RutaEngine.java:530) at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:266) ... 17 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.statements(RutaParser.java:825) at org.apache.uima.ruta.parser.RutaParser.file_input(RutaParser.java:712) ... 21 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.statement(RutaParser.java:1038) at org.apache.uima.ruta.parser.RutaParser.statements(RutaParser.java:804) ... 22 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.blockDeclaration(RutaParser.java:2940) at org.apache.uima.ruta.parser.RutaParser.statement(RutaParser.java:1010) ... 23 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.statements(RutaParser.java:825) at org.apache.uima.ruta.parser.RutaParser.blockDeclaration(RutaParser.java:2921) ... 24 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.statement(RutaParser.java:1038) at org.apache.uima.ruta.parser.RutaParser.statements(RutaParser.java:804) ... 25 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.simpleStatement(RutaParser.java:3266) at org.apache.uima.ruta.parser.RutaParser.statement(RutaParser.java:1000) ... 26 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.ruleElementsRoot(RutaParser.java:3796) at org.apache.uima.ruta.parser.RutaParser.simpleStatement(RutaParser.java:3250) ... 27 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.ruleElement(RutaParser.java:4156) at org.apache.uima.ruta.parser.RutaParser.ruleElementsRoot(RutaParser.java:3739) ... 28 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.ruleElementType(RutaParser.java:4722) at org.apache.uima.ruta.parser.RutaParser.ruleElement(RutaParser.java:3994) ... 29 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.actions(RutaParser.java:5106) at org.apache.uima.ruta.parser.RutaParser.ruleElementType(RutaParser.java:4688) ... 30 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.action(RutaParser.java:11623) at org.apache.uima.ruta.parser.RutaParser.actions(RutaParser.java:5085) ... 31 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:393) at org.apache.uima.ruta.parser.RutaParser.actionAssign(RutaParser.java:14714) at org.apache.uima.ruta.parser.RutaParser.action(RutaParser.java:11305) ... 32 more Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Example, line 28, "(": found no viable alternative at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:358) at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(RutaParser.java:372) at org.apache.uima.ruta.parser.RutaParser.booleanExpression(RutaParser.java:19535) at org.apache.uima.ruta.parser.RutaParser.actionAssign(RutaParser.java:14631) ... 33 more | The script fails to parse, which is strange. I am using the latest version of ruta-core from the maven repo (2.4.0). Any help will be great. Thanks. -- Thanks Himanshu --------------D4EA18C81BE29619FCD00989--