Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 90527 invoked from network); 4 Dec 2009 04:20:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Dec 2009 04:20:28 -0000 Received: (qmail 14352 invoked by uid 500); 4 Dec 2009 04:20:27 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 14235 invoked by uid 500); 4 Dec 2009 04:20:26 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 14211 invoked by uid 99); 4 Dec 2009 04:20:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 04:20:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of msa@schor.com designates 74.52.223.18 as permitted sender) Received: from [74.52.223.18] (HELO gateway07.websitewelcome.com) (74.52.223.18) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 04 Dec 2009 04:20:14 +0000 Received: (qmail 25248 invoked from network); 4 Dec 2009 04:33:33 -0000 Received: from gator74.hostgator.com (67.18.27.130) by gateway07.websitewelcome.com with SMTP; 4 Dec 2009 04:33:33 -0000 Received: from ool-44c6c63b.dyn.optonline.net ([68.198.198.59]:1254 helo=[192.168.1.100]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NGPe4-0007LU-AM for uima-user@incubator.apache.org; Thu, 03 Dec 2009 22:19:52 -0600 Message-ID: <4B188DE9.7050704@schor.com> Date: Thu, 03 Dec 2009 23:19:53 -0500 From: Marshall Schor User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: Tips for a beginner References: <7444f22f0912030701m766fe30cx36859ac253eb2c06@mail.gmail.com> In-Reply-To: <7444f22f0912030701m766fe30cx36859ac253eb2c06@mail.gmail.com> X-Enigmail-Version: 0.96.0 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 - gator74.hostgator.com X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-Virus-Checked: Checked by ClamAV on apache.org Hi William, PEARs are both a packaging, and an "isolation" capability. Packaging: You get to zip up together potentially many components in an aggregate, including the JARs, and the classpaths, so that others can use the component. Isolation: If your Pear uses a particular version of some Jars, included in your PEAR package, UIMA runs these with an isolated class loader so that your versions of the Jars are kept isolated from other versions of the same Jars that might also be present in the rest of the system. This isolation may not be what you want, though. For more typical component assembly, you put components together without Pear isolation, using "plain" components and building normal aggregations of these. In this approach, you have to insure that any Jars used by the components are at the same level. When you're all done, you can deliver the resulting aggregate as a Pear, if that is reasonable in your scenario, to others. HTH. -Marshall William Colen wrote: > Hello, > > We are moving our Brazilian Portuguese annotators (sentence detector, > tokenizer, tagger, parser) to UIMA. We have different implementations of > some annotators: some were created using OpenNLP, others where written from > scratch. > We would like to have .PEARs for each annotator, so in the applications we > would change the annotators easily. Also we don't want to have duplicated > resources (mostly dictionaries, and the UIMA typesystem descriptor), so we > need a way to share. > > The first thing we did was to create the UIMA wrappers and descriptors. They > are ready and we were able to create a UIMA application that uses the > annotators (but we had to put all the code and descriptors in only one > Eclipse project. No .pear yet). > > Now we are splitting the projects in smaller ones. For instance, we create > only one TypeSystem.xml and would like every project to use it. So I created > a simple .pear with the TypeSystem.xml. > After that I created another pear for the sentence detector, but I couldn't > import the TypeSystem.xml of the first pear. The only way to do that was > using the relative path or if I put the TypeSystem.xml inside the JAR file > of the first pear, and import it using classpath. > Do you know a better way to do that? > > Latter I'll have to do the same with the dictionaries. I'm not sure if the > best approach is to create a .pear only for it. Will it work? > > Thanks > William > >