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 09AA910C34 for ; Wed, 30 Oct 2013 02:09:07 +0000 (UTC) Received: (qmail 30562 invoked by uid 500); 30 Oct 2013 02:09:06 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 30485 invoked by uid 500); 30 Oct 2013 02:09:06 -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 30477 invoked by uid 99); 30 Oct 2013 02:09:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 02:09:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cybersation@hotmail.com designates 65.54.51.83 as permitted sender) Received: from [65.54.51.83] (HELO snt0-omc3-s46.snt0.hotmail.com) (65.54.51.83) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 02:08:58 +0000 Received: from SNT148-W85 ([65.55.90.136]) by snt0-omc3-s46.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 29 Oct 2013 19:08:37 -0700 X-TMN: [L7FH9/cTL0iuLV4vo9bpkZiFCRtghUty] X-Originating-Email: [cybersation@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_3709779f-8550-4fdc-8057-0cc60f0000f5_" From: digital paula To: "user@uima.apache.org" Subject: RE: Question on Regular Expression Annotator - Previous issue resolved, on to next issue :-) Date: Tue, 29 Oct 2013 22:08:36 -0400 Importance: Normal In-Reply-To: References: ,,<526FC307.1090400@schor.com>,, MIME-Version: 1.0 X-OriginalArrivalTime: 30 Oct 2013 02:08:37.0136 (UTC) FILETIME=[F1B20100:01CED514] X-Virus-Checked: Checked by ClamAV on apache.org --_3709779f-8550-4fdc-8057-0cc60f0000f5_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Marshall et al=2C =20 I was able to solve the problem=2C just applied the quick fixes in eclipse.= Apparently it's a common problem with Maven dependency plugin: http://www.journaldev.com/503/how-to-fix-maven-dependency-plugin-goals-copy= -dependencies-unpack-is-not-supported-by-m2e-in-eclipse =20 The only problem I have now is executing the regular expression annotator= =2C the concepts file is not being found. I tested the reg expression a= nnotator in the document analyzer tool. I checked and I do see that it's = in the resource directory. I've tried specifically typing in the path(reso= urces/concepts.xml) on the parameter settings tab in the descriptor file bu= t the concepts file is just not being picked up. =20 =20 Thanks and appreciate anyone's help on this. =20 Regards=2C Paula =20 =20 Here's the specific error from below: Caused by: org.apache.uima.annotator= .regex.impl.RegexAnnotatorConfigException: "The resource file concepts.xml = could not be found." =20 -----the entire error-----------------------------------------org.apache.ui= ma.resource.ResourceInitializationException: Initialization of annotator cl= ass "org.apache.uima.annotator.regex.impl.RegExAnnotator" failed. (Descrip= tor: file:/C:/Users/SemanticPrincess/UIMAWorkspaceJuno/RegularExpressionAnn= otator/desc/RegExAnnotator.xml)=0A= at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initi= alizeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:254)=0A= at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initi= alize(PrimitiveAnalysisEngine_impl.java:158)=0A= at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(Analysi= sEngineFactory_impl.java:94)=0A= at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(Comp= ositeResourceFactory_impl.java:62)=0A= at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:269)= =0A= at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:= 387)=0A= at org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:2= 55)=0A= at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initA= SB(AggregateAnalysisEngine_impl.java:429)=0A= at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initi= alizeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:373)=0A= at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initi= alize(AggregateAnalysisEngine_impl.java:186)=0A= at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(Analysi= sEngineFactory_impl.java:94)=0A= at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(Comp= ositeResourceFactory_impl.java:62)=0A= at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:269)= =0A= at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:= 354)=0A= at org.apache.uima.tools.docanalyzer.DocumentAnalyzer.runProcessingThread(= DocumentAnalyzer.java:1223)=0A= at org.apache.uima.tools.docanalyzer.DocumentAnalyzer$ProcessingThread.run= (DocumentAnalyzer.java:1332)=0A= Caused by: org.apache.uima.annotator.regex.impl.RegexAnnotatorConfigExcepti= on: "The resource file resources/concepts.xml could not be found."=0A= at org.apache.uima.annotator.regex.impl.RegExAnnotator.initialize(RegExAnn= otator.java:127)=0A= at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initi= alizeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:252)=0A= ... 15 more=0A= org.apache.uima.resource.ResourceInitializationException: Initialization of= annotator class "org.apache.uima.annotator.regex.impl.RegExAnnotator" fail= ed. (Descriptor: file:/C:/Users/SemanticPrincess/UIMAWorkspaceJuno/Regular= ExpressionAnnotator/desc/RegExAnnotator.xml)=0A= at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initi= alizeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:254)=0A= at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initi= alize(PrimitiveAnalysisEngine_impl.java:158)=0A= at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(Analysi= sEngineFactory_impl.java:94)=0A= at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(Comp= ositeResourceFactory_impl.java:62)=0A= at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:269)= =0A= at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:= 387)=0A= at org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:2= 55)=0A= at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initA= SB(AggregateAnalysisEngine_impl.java:429)=0A= at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initi= alizeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:373)=0A= at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initi= alize(AggregateAnalysisEngine_impl.java:186)=0A= at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(Analysi= sEngineFactory_impl.java:94)=0A= at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(Comp= ositeResourceFactory_impl.java:62)=0A= at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:269)= =0A= at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:= 354)=0A= at org.apache.uima.tools.docanalyzer.DocumentAnalyzer.runProcessingThread(= DocumentAnalyzer.java:1223)=0A= at org.apache.uima.tools.docanalyzer.DocumentAnalyzer$ProcessingThread.run= (DocumentAnalyzer.java:1332)=0A= Caused by: org.apache.uima.annotator.regex.impl.RegexAnnotatorConfigExcepti= on: "The resource file concepts.xml could not be found."=0A= at org.apache.uima.annotator.regex.impl.RegExAnnotator.initialize(RegExAnn= otator.java:127)=0A= at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initi= alizeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:252)=0A= ... 15 more =20 =20 =20 =20 From: cybersation@hotmail.com To: user@uima.apache.org Subject: FW: Question on Regular Expression Annotator - please disregard pr= evious post this one is correct Date: Tue=2C 29 Oct 2013 12:42:11 -0400 =0A= =0A= =0A= =0A= =0A= =0A= Hi Marshall=2C First of all thanks for your prompt response. Per your recommendation=2C I= did the tag check out using the link you provided but ran into an error on= the maven install with the 'import maven projects' screen please see attac= hed image. There was an error with the 'uima-build-helper-maven-plugin'. = I continued with install to resolve later. After installation there was= a problem with the POM file. I opened up the POM file=2C the overview pag= e states an error with the "maven-dependency-plugin(goals "copy-dependenci= es"=2C "unpack") is not supported by m2e". The second problem (from des= cription section of eclipse project) states that "plugin execution not cove= red by lifecycle configuration org.apache.uima:uima-build-helper-maven-plu= gin:2:parse-date-time(execution: setbuildYear and buildMonth=2C phase:valid= ate)" I do appreciate your personal assistance with this. In the meantime=2C = I'll be reading up on the differences between trunks=2C tags and branches. = :-) Regards=2CPaula > Date: Tue=2C 29 Oct 2013 10:15:35 -0400 > From: msa@schor.com > To: user@uima.apache.org > Subject: Re: Question on Regular Expression Annotator - please disregard = previous post this one is correct >=20 > Hi=2C >=20 > It looks like you're working with the "trunk" level of the source. >=20 > The trunk level sometimes doesn't build=2C as people are working on it... >=20 > If you want to build a "released" level=2C just check out a tag=2C rather= than the > trunk. For instance=2C you could check out of SVN the last release tag= =2C here: > https://svn.apache.org/repos/asf/uima/addons/tags/uima-addons-2.3.1/Regul= arExpressionAnnotator >=20 > If you want to work with the trunk=2C you will need to check out=2C also= =2C the project: > uima-addons-parent=2C and build it using "mvn install". This will create= the > missing 2.3.2-SNAPSHOT version of this artifact in your local Maven .m2 > repository=2C and that will fix the problem of it not being found... >=20 > Cheers. -Marshall >=20 > On 10/28/2013 10:30 PM=2C digital paula wrote: > > Hi again=2C > > When I did a maven install via Eclipse it resolved the issues that I ha= d in my previous post. The only error that I have now is with the build. = =20 > > In the POM file there's a problem with this part: org.apache.uima uima-addons-parent = 2.3.2-SNAPSHOT ../uima-addons-parent<= /relativePath> It states on the overview tab the following Proj= ect build error: "Non-resolvable parent POM: could not find artifact org.a= pac > > Project build error: Non-resolvable parent POM: Could not find artifact= org.apache.uima:uima-addons-parent:pom:2.3.2-SNAPSHOT and 'parent.relative= Path' points at wrong local POM > > I did find a similar problem on the user archives that with the parent = POM but it was for the simple server addon:http://mail-archives.apache.org/= mod_mbox/uima-user/201206.mbox/browser > > Would appreciate any help on this.=20 > > Thanks. > > Regards=2CPaula > > From: cybersation@hotmail.com > > To: user@uima.apache.org > > Subject: Question on Regular Expression Annotator > > Date: Mon=2C 28 Oct 2013 12:59:11 -0400 > > > > > > > > > > Hi=2C > > =20 > > I had completed most of the tutorials on UIMA Framework (though I wasn'= t able to do the semantic search due to it not being open source anymore an= d removed from the uimaj-examples folder :-( I came across a reference to = the Lemur Project while researching alternatives and after an evening tryin= g to get it working just ended up scrapping it all together. I was able to= install the PEAR via the PEAR installation tool but when testing it crashe= d due to unable to resolve references to org.ibm.apache that no longer ex= isted so I imported project into Eclipse and changed the references in the = java file to java.org.apache and still ran into problems with the CVD tool= =2C the indriCASconsumer descriptor was not finding the java class. I'm = going to look into Solr next since I see it's a more recent semantic search= tool. > > =20 > > In the meantime=2C I am trying to work with the regular expression anno= tator add on. I had installed the regular expression annotator via SVN wit= hin Eclipse as a separate project. http://svn.apache.org/repos/asf/uima/a= ddons/trunk/RegularExpressionAnnotator/ > > =20 > > The problem I had first off was that the reference in each java file wa= s 'package org.apache.uima.annotator.regex' but the build path for the dire= ctories was main.java.org.apache.uima.annotator.regex in the project. This= was resolved by the quick fix in java to change all the package names in t= he files to have the correct package name of main.java.org.apache.uima.ann= otator.regex. =20 > > =20 > > In addition=2C I just manually changed the import names such as: 'impo= rt org.apache.uima.annotator.regex.Position' to=20 > > 'import main.java.org.apache.uima.annotator.regex.Position' > > =20 > > However I ran into a bit of a snag when I came across these to imports = in the java file ConceptFileParser_Imp.java > > I don't know how to resolve the error (the imports are not resolved) s= ince I don't see incubator anywhere in the project and I'm not expert enoug= h at Java to resolve the second one: > > import org.apache.incubator.uima.regex.AnnotationDocument=3B > > import org.apache.xmlbeans.XmlError=3B > > =20 > > Would appreciate any help.=20 > > =20 > > Thanks. > > =20 > > Regards=2C > > Paula > > =20 > > > > =20 > > =20 > > =20 > > =20 > > =20 > > =20 > > =20 > > =20 > > =20 > > =20 > > =20 > > =20 >=20 = --_3709779f-8550-4fdc-8057-0cc60f0000f5_--