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 B93A411568 for ; Sun, 4 May 2014 18:25:32 +0000 (UTC) Received: (qmail 13339 invoked by uid 500); 4 May 2014 18:25:32 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 13275 invoked by uid 500); 4 May 2014 18:25:31 -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 13267 invoked by uid 99); 4 May 2014 18:25:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2014 18:25:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of msa@schor.com designates 64.5.52.8 as permitted sender) Received: from [64.5.52.8] (HELO gateway05.websitewelcome.com) (64.5.52.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2014 18:25:27 +0000 Received: by gateway05.websitewelcome.com (Postfix, from userid 5007) id 33DDF49D17E71; Sun, 4 May 2014 13:25:04 -0500 (CDT) Received: from gator3253.hostgator.com (gator3253.hostgator.com [198.57.247.217]) by gateway05.websitewelcome.com (Postfix) with ESMTP id 1A4DE49D17E44 for ; Sun, 4 May 2014 13:25:04 -0500 (CDT) Received: from [24.45.235.111] (port=50180 helo=[192.168.1.101]) by gator3253.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1Wh15z-0005Wg-JY for user@uima.apache.org; Sun, 04 May 2014 13:25:03 -0500 Message-ID: <536685FF.8060707@schor.com> Date: Sun, 04 May 2014 14:25:03 -0400 From: Marshall Schor User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: RandomAccessFile problem in UIMA References: <53634af4.6877420a.1025.58ef@mx.google.com> <5363A806.606@keatext.com> <53643c93.69a1420a.4e82.7e00@mx.google.com> In-Reply-To: <53643c93.69a1420a.4e82.7e00@mx.google.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3253.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source-IP: 24.45.235.111 X-Exim-ID: 1Wh15z-0005Wg-JY X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.101]) [24.45.235.111]:50180 X-Source-Auth: msa+schor.com X-Email-Count: 1 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yMzI1My5ob3N0Z2F0b3IuY29t X-Virus-Checked: Checked by ClamAV on apache.org The Eclipse feature to is "m2e". -Marshall On 5/2/2014 8:47 PM, Debbie Zhang wrote: > Thanks Alexandre for your reply! > > I will try extJWNL as suggested. As I have never used maven, may I ask which > maven Eclipse plugin you use? > > Thanks again for your help! > > Regards, > > Debbie > > >> -----Original Message----- >> From: Alexandre Patry [mailto:alexandre.patry@keatext.com] >> Sent: Saturday, 3 May 2014 12:13 AM >> To: user@uima.apache.org >> Subject: Re: RandomAccessFile problem in UIMA >> >> Hi Debbie, >> >> I recommend you to use extJWNL (https://github.com/extjwnl/extjwnl) >> instead of JWNL. We made the switch from JWNL and never looked back. >> >> For your path problems, extJWNL distribute WordNet dictionaries as >> maven dependencies. It should become a non-issue. >> >> Hope this help, >> >> Alexandre >> >> On 02/05/2014 03:36, Debbie Zhang wrote: >>> Hi, >>> >>> >>> >>> I am having problems to use JWNL wordnet in UIMA. >>> >>> >>> >>> JWNL uses RandomAccessFile to read wordnet dictionary files. In order >>> to create a PEAR file, wordnet dictionary files are put in >>> resources/wordnet folder under project. As resources is in my Build >>> Path, I have no problem to run the application I created in Eclipse. >>> Therefore, I am certain the dictionary files can be read. However, >>> when I use UIMA Document Analyzer or UIMA CAS Visual Debugger to run >> the annotation, I get the following error: >>> >>> >>> java.io.FileNotFoundException: resources/wordnet/data.noun (No such >>> file or >>> directory) >>> >>> >>> >>> The error comes from the following code: >>> >>> >>> >>> RandomAccess _file = new RandomAccessFile(path, _permissions); >>> >>> >>> >>> I use the following code to check the current working directory of >> the >>> class: >>> >>> >>> >>> URL location = >>> >> PrincetonRandomAccessDictionaryFile.class.getProtectionDomain().getCod >>> eSourc >>> e().getLocation(); >>> >>> System.out.println(location.getFile()); >>> >>> >>> >>> It seems both situation have the same location: /project/bin/ >>> >>> >>> >>> Did anyone encounter a similar problem before? Any suggestion is >> welcome. >>> Thank you! >>> >>> >>> >>> Regards, >>> >>> >>> >>> Debbie >>> >>> >>> >>> >> >> -- >> Alexandre Patry, Ph.D >> Chercheur / Researcher >> http://KeaText.com > > >