Return-Path: X-Original-To: apmail-incubator-ctakes-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ctakes-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A336FE279 for ; Thu, 14 Mar 2013 14:46:04 +0000 (UTC) Received: (qmail 35346 invoked by uid 500); 14 Mar 2013 14:46:04 -0000 Delivered-To: apmail-incubator-ctakes-dev-archive@incubator.apache.org Received: (qmail 35269 invoked by uid 500); 14 Mar 2013 14:46:04 -0000 Mailing-List: contact ctakes-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ctakes-dev@incubator.apache.org Delivered-To: mailing list ctakes-dev@incubator.apache.org Received: (qmail 35252 invoked by uid 99); 14 Mar 2013 14:46:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 14:46:04 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [129.176.212.47] (HELO mail10.mayo.edu) (129.176.212.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 14:45:56 +0000 Received: from roedlp005a.mayo.edu (HELO mail10.mayo.edu) ([129.176.158.0]) by ironport10-dlp.mayo.edu with ESMTP; 14 Mar 2013 09:45:35 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAJfhQVGBsNQ1/2dsb2JhbABEhBrCQBZtB4IxchkBgQAnBIgnoBOYFIkPkXZhA5ZYkQKDCoIo Received: from mhro1a.mayo.edu ([129.176.212.53]) by ironport10.mayo.edu with ESMTP; 14 Mar 2013 09:45:35 -0500 Received: from MSGPEXCEI06A.mfad.mfroot.org (msgpexcei06a.mayo.edu [129.176.249.167]) by mhro1a.mayo.edu with ESMTP id BT-MMP-676392 for ctakes-dev@incubator.apache.org; Thu, 14 Mar 2013 09:45:34 -0500 Received: from MSGPEXCEI04A.mfad.mfroot.org (129.176.249.95) by MSGPEXCEI06A.mfad.mfroot.org (129.176.249.167) with Microsoft SMTP Server (TLS) id 14.2.342.3; Thu, 14 Mar 2013 09:45:34 -0500 Received: from MSGPEXCEI05A.mfad.mfroot.org ([169.254.2.104]) by MSGPEXCEI04A.mfad.mfroot.org ([169.254.1.157]) with mapi id 14.02.0342.003; Thu, 14 Mar 2013 09:45:34 -0500 From: "Kaggal, Vinod C." To: "ctakes-dev@incubator.apache.org" Subject: relation-extractor - how to include it as a dependency? Thread-Topic: relation-extractor - how to include it as a dependency? Thread-Index: AQHOIMKULbOqipFjuUS7XrN5MMVX8w== Date: Thu, 14 Mar 2013 14:45:32 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.145.4.121] Content-Type: multipart/alternative; boundary="_000_B6FD58499BC54AB594CBC04AEE7DE150mayoedu_" MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org --_000_B6FD58499BC54AB594CBC04AEE7DE150mayoedu_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello! Quick Background: We have been working on integrating CTAKES with DataNorma= lization pipeline (as part of SHARPN effort). I have added relation-extract= or as a dependency to our Normalization project as the template-filling mod= ule/project uses it. Question: What is the is a recommended way of adding the relation-extractio= n's resource directory to a project that uses this project? Just adding the= project (relation-extractor) to the build-path (projects) results in the f= ollowing error: Caused by: org.apache.uima.resource.ResourceInitializationException at org.cleartk.classifier.CleartkAnnotator.initialize(CleartkAnno= tator.java:115) at org.chboston.cnlp.ctakes.relationextractor.ae.RelationExtracto= rAnnotator.initialize(RelationExtractorAnnotator.java:121) at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_i= mpl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:250) ... 71 more Caused by: java.io.FileNotFoundException: resources/models/em_pair/model.ja= r (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:120) at java.io.FileInputStream.(FileInputStream.java:79) at org.cleartk.classifier.jar.GenericJarClassifierFactory.createC= lassifier(GenericJarClassifierFactory.java:67) at org.cleartk.classifier.jar.JarClassifierFactory.createClassifi= er(JarClassifierFactory.java:35) at org.cleartk.classifier.CleartkAnnotator.initialize(CleartkAnno= tator.java:113) Looks like copying the resources directory to the target project (Normaliza= tion project in this case) seems to take care of this issue. However, I wan= ted to see a cleaner way of doing this instead of duplicating the jar (and = other resources). Vinod --_000_B6FD58499BC54AB594CBC04AEE7DE150mayoedu_--