From uima-user-returnlisa23@example.net Wed Jun 04 01:11:20 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 57047 invoked from network); 4 Jun 2008 01:11:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jun 2008 01:11:20 -0000 Received: (qmail 59187 invoked by uid 500); 4 Jun 2008 01:11:23 -0000 Delivered-To: lisa23@example.net Received: (qmail 59149 invoked by uid 500); 4 Jun 2008 01:11:23 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 59138 invoked by uid 99); 4 Jun 2008 01:11:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 18:11:23 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO gateway07.websitewelcome.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 04 Jun 2008 01:10:32 +0000 Received: (qmail 25337 invoked from network); 4 Jun 2008 01:17:14 -0000 Received: from gator74.hostgator.com (83.161.120.155) by gateway07.websitewelcome.com with SMTP; 4 Jun 2008 01:17:14 -0000 Received: from ool-44c6c63b.dyn.optonline.net ([83.161.120.155]:36775 helo=[83.161.120.155]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from <lisa23@example.net>) id 1K3hWX-0002Od-MP for lisa23@example.net; Tue, 03 Jun 2008 20:10:45 -0500 Message-ID: <lisa23@example.net> Date: Tue, 03 Jun 2008 21:10:53 -0400 From: Marshall Schor <lisa23@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: lisa23@example.net Subject: Some offset issues with Open Calais References: <lisa23@example.net> In-Reply-To: <lisa23@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 I fiddled around a bit more with this, trying various things that actually connected to the service. I finally figured out that if you send the string "xxx & yyy" to the service, it actually processes the string <Document><Title>1212537108630-85FDAB4B-292518</Title><Date>2008-06-03</Date><Body>xxx &amp; yyy</Body></Document> or something like that. And that returned offsets are relative to this string. To correct the offsets returned so that they correspond to what you sent looks like it has 2 parts: the first part - the prefix "<Document ... <Body>" is pretty easily accounted for. The send part, expanding & to &amp; requires more work. Other characters are also converted, some strangely. I've seen the usual: < converted to &lt;, > converted to &gt; The character " seemed to be converted to &amp;quot; All this is apparently a "bug" - their forum includes a post saying the problem with the "&" will be fixed in the next release. I've posted a reply to their forum asking about other characters beside the "&". One final note: their API says that for the POST method, content sent using that method needs to be escaped. I think that means the kind of escaping that is done for encoding strings in URLs; I used the Java library method: URLEncoder.encode(string, 'UTF-8') to do this and it seemed to do the trick. -Marshall From uima-user-returnlisa23@example.net Wed Jun 04 11:54:38 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 45166 invoked from network); 4 Jun 2008 11:54:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jun 2008 11:54:37 -0000 Received: (qmail 16563 invoked by uid 500); 4 Jun 2008 11:54:40 -0000 Delivered-To: lisa23@example.net Received: (qmail 16546 invoked by uid 500); 4 Jun 2008 11:54:39 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 16535 invoked by uid 99); 4 Jun 2008 11:54:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 04:54:39 -0700 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: local policy) Received: from [83.161.120.155] (HELO mail-gw-01.neofonie.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 11:53:44 +0000 Received: from [83.161.120.155] (helo=perseus.exchange.neofonie.de) by mail-gw-01.neofonie.de with esmtp (Exim 4.63) (envelope-from <lisa23@example.net>) id 1K3rZ9-0008RF-HB for lisa23@example.net; Wed, 04 Jun 2008 13:54:07 +0200 Received: from [83.161.120.155] ([83.161.120.155]) by perseus.exchange.neofonie.de with Microsoft SMTPSVC849.748.7849); Wed, 4 Jun 2008 13:54:07 +0200 Message-ID: <lisa23@example.net> Date: Wed, 04 Jun 2008 13:54:07 +0200 From: =?UTF-8?B?Q2hyaXN0b3BoIELDvHNjaGVy?= <lisa23@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20080421) MIME-Version: 1.0 To: lisa23@example.net Subject: Problem using Capabilities - OutputSofa Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 04 Jun 2008 11:54:07.0375 (UTC) FILETIME=[B18491F0:01C8C639] X-Virus-Checked: Checked by ClamAV on apache.org Hi, I ignored the analysis engines "capabilities" section so far, but after I tried declaring an "outputSofa" for the first time, I ran into trouble using the analysis engine in a CPE. I have an AE that takes webpages in HTML format as input and removes the HTML-Tags etc... The result is stored in a new CAS view named "plainTextView". So far I didn't declare any capabilities in the AEs descriptor, but now I tried this: <capabilities> <capability> <inputs/> <outputs/> <outputSofas> <sofaName>plainTextView</sofaName> </outputSofas> <languagesSupported/> </capability> </capabilities> The AEs process() method usually acesses the default view of the JCas, does some processing and stores the result in the new view. The code goes something like this: // get the text from the default CAS view String originalText = jcas.getDocumentText(); JCas plainTextView = null; // Extract plain text from original document documentWithoutHTML = someProcessing(); // create view for stripped HTML document try { plainTextView = jcas.createView(DOCUMENT_PLAINTEXT_VIEWNAME); plainTextView.setDocumentText("plainTextView"); } catch (CASException e) { logger.warn(e.getMessage()); throw new AnalysisEngineProcessException(e); } Using this AE in a CPE (inside an aggregate AE) was working until I declared the outputSofa like described above. Now when trying to retrieve the original text from the default view with "jcas.getDocumentText()" always returns "null". Some debugging shows that the reason for this is that in CASImpl.getSofaDataString() it appears this branch is used: if (this == this.svd.baseCAS) { // base CAS has no document return null; } What am I missing when I declare the output sofa capability of the AE? Why does the JCas default view seems to be inaccessible after I declared the outputSofa? Thanks for any hints and information! -- -------------------------------- Christoph Büscher From uima-user-returnlisa23@example.net Wed Jun 04 13:41:43 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 87673 invoked from network); 4 Jun 2008 13:41:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jun 2008 13:41:42 -0000 Received: (qmail 2266 invoked by uid 500); 4 Jun 2008 13:41:45 -0000 Delivered-To: lisa23@example.net Received: (qmail 2242 invoked by uid 500); 4 Jun 2008 13:41:45 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 2231 invoked by uid 99); 4 Jun 2008 13:41:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 06:41:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO rn-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 13:40:56 +0000 Received: by rn-out-0910.google.com with SMTP id m7so16530rnd.3 for <lisa23@example.net>; Wed, 04 Jun 2008 06:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=GyWc16JwRuMpJdN+p/yqDWk/VgJPceJkfpqv7uz+2ew=; b=kRGyRca9dnoRPVlnC8UJJcXwThF/+Afr0eCQPXO0zxQBvmvqgCgfxgFDB518QXCAtE 4YLV33LASzlMbmHhH/1MQDZQ+bKWNSr2yxJl4VXkDIXaWqJaw1UIYeueeYlhDZGPKETJ aI2Xx09Da/qwFG23vyFBguxfZt/25Im5INeQg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=q54XH/IBuqsV+J4prI3gi1/WHIL1YrPiaGr2mIN8vhTqD0/TQoUu4U3fkp8WbeqXtI LZnPUgQF6LC1Oe+jngARlmBH8yHhMNXgwiKgoUoviPyOWhsy0jV927JrmLssCnpkCcru XdMEuFFiUMPIe7ADoQOxohznGee8EsQoR4d/Q= Received: by 83.161.120.155 with SMTP id v3mr12729536wai.180.1212586871903; Wed, 04 Jun 2008 06:41:11 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Wed, 4 Jun 2008 06:41:11 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Wed, 4 Jun 2008 09:41:11 -0400 From: "Eddie Epstein" <lisa23@example.net> To: lisa23@example.net Subject: Re: Problem using Capabilities - OutputSofa In-Reply-To: <lisa23@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <lisa23@example.net> X-Virus-Checked: Checked by ClamAV on apache.org The CAS reference passed to the annotator process method changes when Sofa capabilities are declared. See http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/doc= s/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.m= vs.deciding_multi_view After declaring an output Sofa, process gets the "base CAS". To get the text from the "default" view, try String originalText =3D jcas.getCas().getCurrentView().getDocumentText(); Eddie PS looks like the JCas interface is missing the getCurrentView() method. On 6/4/08, Christoph B=FCscher <lisa23@example.net> wrote: > Hi, > > I ignored the analysis engines "capabilities" section so far, but after I > tried > declaring an "outputSofa" for the first time, I ran into trouble using th= e > analysis engine in a CPE. > > I have an AE that takes webpages in HTML format as input and removes the > HTML-Tags etc... The result is stored in a new CAS view named > "plainTextView". > So far I didn't declare any capabilities in the AEs descriptor, but now I > tried > this: > > <capabilities> > <capability> > <inputs/> > <outputs/> > <outputSofas> > <sofaName>plainTextView</sofaName> > </outputSofas> > <languagesSupported/> > </capability> > </capabilities> > > The AEs process() method usually acesses the default view of the JCas, do= es > some > processing and stores the result in the new view. The code goes something > like this: > > // get the text from the default CAS view > String originalText =3D jcas.getDocumentText(); > JCas plainTextView =3D null; > > // Extract plain text from original document > documentWithoutHTML =3D someProcessing(); > > // create view for stripped HTML document > try { > plainTextView =3D jcas.createView(DOCUMENT_PLAINTEXT_VIEWNAME); > plainTextView.setDocumentText("plainTextView"); > } catch (CASException e) { > logger.warn(e.getMessage()); > throw new AnalysisEngineProcessException(e); > } > > > Using this AE in a CPE (inside an aggregate AE) was working until I decla= red > the > outputSofa like described above. Now when trying to retrieve the original > text > from the default view with "jcas.getDocumentText()" always returns "null"= . > Some > debugging shows that the reason for this is that in > CASImpl.getSofaDataString() > it appears this branch is used: > > if (this =3D=3D this.svd.baseCAS) { > // base CAS has no document > return null; > } > > > What am I missing when I declare the output sofa capability of the AE? Wh= y > does > the JCas default view seems to be inaccessible after I declared the > outputSofa? > > Thanks for any hints and information! > > > -- > -------------------------------- > Christoph B=FCscher > From uima-user-returnlisa23@example.net Wed Jun 04 14:36:27 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 77143 invoked from network); 4 Jun 2008 14:36:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jun 2008 14:36:27 -0000 Received: (qmail 30769 invoked by uid 500); 4 Jun 2008 14:36:30 -0000 Delivered-To: lisa23@example.net Received: (qmail 30571 invoked by uid 500); 4 Jun 2008 14:36:30 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 30558 invoked by uid 99); 4 Jun 2008 14:36:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 07:36:29 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO moutng.kundenserver.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 14:35:33 +0000 Received: from [83.161.120.155] (p4FC77D19.dip.t-dialin.net [83.161.120.155]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1K3u5j193g-0008Eb; Wed, 04 Jun 2008 16:35:55 +0200 Mime-Version: 1.0 (Apple Message framework v753) Content-Transfer-Encoding: quoted-printable Message-Id: <lisa23@example.net> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed To: lisa23@example.net From: Richard Eckart <lisa23@example.net> Subject: Session variable potpurri in CPE Date: Wed, 4 Jun 2008 16:35:53 +0200 X-Mailer: Apple Mail (2.753) X-Provags-ID: V01U2FsdGVkX18c3EqGKef3uSLAzlLYQOJt/N/3QIs1oRiTYzr StxVhb3uQV4xzix6hzj1AZjVEaapOEqVCfq+oCugFvGjo4Uuw9 rG4PzVh5DagFcteXSWg6Q== X-Virus-Checked: Checked by ClamAV on apache.org Hello there, I have recently switched from my own home-cooked version of session =20 variables to using the UIMAContext session. Actually I am using the UIMAContextAdmin-rootContext for =20 storing my session variables as I need them to set them in the =20 CollectionReader and read them in the CASConsumer. However, unless I set the casPoolSize to 1 I am having the problem =20 that the CollectionReader already overwrites the session variable =20 which the CASConsumer has not yet read. Before I had encoded my variables as an annotation within the CAS =20 which worked fine. Is there any way to make use of the CAS pool AND of the UIMA session =20 variables at the same time? Richard Eckart Technische Universit=E4t Darmstadt Institute of Linguistics and Literary Studies Department of English Linguistics Hochschulstrasse 1 64289 Darmstadt Germany From uima-user-returnlisa23@example.net Wed Jun 04 15:21:24 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 91721 invoked from network); 4 Jun 2008 15:21:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jun 2008 15:21:24 -0000 Received: (qmail 29042 invoked by uid 500); 4 Jun 2008 15:21:27 -0000 Delivered-To: lisa23@example.net Received: (qmail 29012 invoked by uid 500); 4 Jun 2008 15:21:27 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 29001 invoked by uid 99); 4 Jun 2008 15:21:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 08:21:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 04 Jun 2008 15:20:35 +0000 Received: (qmail invoked by alias); 04 Jun 2008 15:20:49 -0000 Received: from blueice4n1.de.ibm.com (EHLO [83.161.120.155]) [83.161.120.155] by mail.gmx.net (mp019) with SMTP; 04 Jun 2008 17:20:49 +0200 X-Authenticated: #25330878 X-Provags-ID: V01U2FsdGVkX19fvMpzpBFffAM+qU+RLhXH9npyu6Yw32LPInyph6 fd153ojr1zQXJN Message-ID: <lisa23@example.net> Date: Wed, 04 Jun 2008 17:20:49 +0200 From: Thilo Goetz <lisa23@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: lisa23@example.net Subject: Re: Problem using Capabilities - OutputSofa References: <lisa23@example.net> <lisa23@example.net> In-Reply-To: <lisa23@example.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org And here's some background if you're interested: http://lisa23@example.net/msg00945.html There's a lot of discussion before that message, and a lot afterwards. So we were mostly agreed that this was broken, but couldn't agree on the proper fix and finally gave up. If we ever do a UIMA 3, we'll have the same discussion all over :-) --Thilo Eddie Epstein wrote: > The CAS reference passed to the annotator process method changes when > Sofa capabilities are declared. See > http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.mvs.deciding_multi_view > > After declaring an output Sofa, process gets the "base CAS". To get > the text from the "default" view, try > > String originalText = jcas.getCas().getCurrentView().getDocumentText(); > > Eddie > > PS looks like the JCas interface is missing the getCurrentView() method. > > On 6/4/08, Christoph Büscher <lisa23@example.net> wrote: >> Hi, >> >> I ignored the analysis engines "capabilities" section so far, but after I >> tried >> declaring an "outputSofa" for the first time, I ran into trouble using the >> analysis engine in a CPE. >> >> I have an AE that takes webpages in HTML format as input and removes the >> HTML-Tags etc... The result is stored in a new CAS view named >> "plainTextView". >> So far I didn't declare any capabilities in the AEs descriptor, but now I >> tried >> this: >> >> <capabilities> >> <capability> >> <inputs/> >> <outputs/> >> <outputSofas> >> <sofaName>plainTextView</sofaName> >> </outputSofas> >> <languagesSupported/> >> </capability> >> </capabilities> >> >> The AEs process() method usually acesses the default view of the JCas, does >> some >> processing and stores the result in the new view. The code goes something >> like this: >> >> // get the text from the default CAS view >> String originalText = jcas.getDocumentText(); >> JCas plainTextView = null; >> >> // Extract plain text from original document >> documentWithoutHTML = someProcessing(); >> >> // create view for stripped HTML document >> try { >> plainTextView = jcas.createView(DOCUMENT_PLAINTEXT_VIEWNAME); >> plainTextView.setDocumentText("plainTextView"); >> } catch (CASException e) { >> logger.warn(e.getMessage()); >> throw new AnalysisEngineProcessException(e); >> } >> >> >> Using this AE in a CPE (inside an aggregate AE) was working until I declared >> the >> outputSofa like described above. Now when trying to retrieve the original >> text >> from the default view with "jcas.getDocumentText()" always returns "null". >> Some >> debugging shows that the reason for this is that in >> CASImpl.getSofaDataString() >> it appears this branch is used: >> >> if (this == this.svd.baseCAS) { >> // base CAS has no document >> return null; >> } >> >> >> What am I missing when I declare the output sofa capability of the AE? Why >> does >> the JCas default view seems to be inaccessible after I declared the >> outputSofa? >> >> Thanks for any hints and information! >> >> >> -- >> -------------------------------- >> Christoph Büscher >> From uima-user-returnlisa23@example.net Wed Jun 04 16:51:31 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 7082 invoked from network); 4 Jun 2008 16:51:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jun 2008 16:51:31 -0000 Received: (qmail 96132 invoked by uid 500); 4 Jun 2008 16:51:33 -0000 Delivered-To: lisa23@example.net Received: (qmail 96110 invoked by uid 500); 4 Jun 2008 16:51:33 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 96099 invoked by uid 99); 4 Jun 2008 16:51:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 09:51:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mail-gw-01.neofonie.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 16:50:44 +0000 Received: from [83.161.120.155] (helo=perseus.exchange.neofonie.de) by mail-gw-01.neofonie.de with esmtp (Exim 4.63) (envelope-from <lisa23@example.net>) id 1K3wCQ-0000BM-Qo for lisa23@example.net; Wed, 04 Jun 2008 18:50:58 +0200 Received: from [83.161.120.155] ([83.161.120.155]) by perseus.exchange.neofonie.de with Microsoft SMTPSVC849.748.7849); Wed, 4 Jun 2008 18:50:58 +0200 Message-ID: <lisa23@example.net> Date: Wed, 04 Jun 2008 18:50:58 +0200 From: =?UTF-8?B?Q2hyaXN0b3BoIELDvHNjaGVy?= <lisa23@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20080421) MIME-Version: 1.0 To: lisa23@example.net Subject: Re: Problem using Capabilities - OutputSofa References: <lisa23@example.net> <lisa23@example.net> In-Reply-To: <lisa23@example.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 04 Jun 2008 16:50:58.0578 (UTC) FILETIME=[29D27720:01C8C663] X-Virus-Checked: Checked by ClamAV on apache.org Hi, thanks for the information. Accessing the default view via the CAS interface seems to work. However it seems a bit confusing that declaring an output view should affect the input view of an analysis engine. I will have a look at the Multi-View components section in the documentation. Eddie Epstein schrieb: > The CAS reference passed to the annotator process method changes when > Sofa capabilities are declared. See > http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.mvs.deciding_multi_view > > After declaring an output Sofa, process gets the "base CAS". To get > the text from the "default" view, try > > String originalText = jcas.getCas().getCurrentView().getDocumentText(); > > Eddie > > PS looks like the JCas interface is missing the getCurrentView() method. > -- -------------------------------- Christoph Büscher From uima-user-returnlisa23@example.net Wed Jun 04 20:31:12 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 99107 invoked from network); 4 Jun 2008 20:31:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jun 2008 20:31:12 -0000 Received: (qmail 55779 invoked by uid 500); 4 Jun 2008 20:31:15 -0000 Delivered-To: lisa23@example.net Received: (qmail 55575 invoked by uid 500); 4 Jun 2008 20:31:14 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 55564 invoked by uid 99); 4 Jun 2008 20:31:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 13:31:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO rv-out-0708.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 20:30:22 +0000 Received: by rv-out-0708.google.com with SMTP id k29so307448rvb.0 for <lisa23@example.net>; Wed, 04 Jun 2008 13:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=SnquOMgKpTLpTbEBxu8kTnXgxdBacVoSkeMYNkskxJ0=; b=iOyj/ztc7RGAHIyvFbnRxg75XiSksxIR2q4jLavlXK6OhsmbMXiDmL5wDwQy8CQjji YWu6Ob3Y0h/YJU0FS64EiLAbld1qfk52AmYVE4cWxPkm4D5GwRLlvfAyT9Jqx+IrvPPl 0l7PWamDYI8ZgJqPvYdPP1ojjyOyVm5apoKQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=XvIuhZBTQf8zCiM31li9TJGtChfMY9QMdyIQ31WTmCeZ8sl65wIWk5Szh4EWSA+jPv M1I3foiDaKzZeTRymPVqjgJsEPbmUG+t85GGilJ8gPu80tf6mpJz3unS6ieL4I+G61H3 uxyfWA8TikbkhaYwub/c1HR9BaIjEgMGgtXwA= Received: by 83.161.120.155 with SMTP id a9mr298957rvq.238.1212611438719; Wed, 04 Jun 2008 13:30:38 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Wed, 4 Jun 2008 13:30:38 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Wed, 4 Jun 2008 16:30:38 -0400 From: "Adam Lally" <lisa23@example.net> Sender: lisa23@example.net To: lisa23@example.net Subject: Re: Session variable potpurri in CPE In-Reply-To: <lisa23@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <lisa23@example.net> X-Google-Sender-Auth: bebacdf198521aef X-Virus-Checked: Checked by ClamAV on apache.org Hi Richard, On Wed, Jun 4, 2008 at 10:35 AM, Richard Eckart <lisa23@example.net> wrote: > Hello there, > > I have recently switched from my own home-cooked version of session > variables to using the UIMAContext > session. Actually I am using the UIMAContextAdmin-rootContext for storing my > session variables as I need them to set them in the CollectionReader and > read them in the CASConsumer. > The Session support is actually not intended for sharing information between components, and it's not really fully implemented anyway. See this email: http://lisa23@example.net/msg04364.html. > However, unless I set the casPoolSize to 1 I am having the problem that the > CollectionReader already overwrites the session variable which the > CASConsumer has not yet read. > > Before I had encoded my variables as an annotation within the CAS which > worked fine. > It sounds like the values of these variables pertain to a particular CAS (since you don't want the values to change until that CAS has been fully processed). If so, then storing them them in the CAS was a fine solution. The CollectionReader and CAS Consumers run in separate threads, so the CollectionReader definitely may move on to a new CAS before the CAS Consumer processes the first one. If you wanted your Collection Reader and CAS Consumer so share data that was *not* related to a particular CAS, you could use UIMA's external resource mechanism to accomplish that. -Adam From uima-user-returnlisa23@example.net Wed Jun 04 21:39:38 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 39117 invoked from network); 4 Jun 2008 21:39:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jun 2008 21:39:38 -0000 Received: (qmail 47061 invoked by uid 500); 4 Jun 2008 21:39:40 -0000 Delivered-To: lisa23@example.net Received: (qmail 47035 invoked by uid 500); 4 Jun 2008 21:39:40 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 47024 invoked by uid 99); 4 Jun 2008 21:39:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 14:39:40 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO moutng.kundenserver.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 21:38:44 +0000 Received: from [83.161.120.155] (p4FC77EB1.dip.t-dialin.net [83.161.120.155]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1K40hF44Ia-0004GW; Wed, 04 Jun 2008 23:39:06 +0200 Mime-Version: 1.0 (Apple Message framework v753) Content-Transfer-Encoding: quoted-printable Message-Id: <lisa23@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed To: lisa23@example.net From: Richard Eckart <lisa23@example.net> Subject: OSGi-fied UIMA Maven artifact repository? Date: Wed, 4 Jun 2008 23:39:04 +0200 X-Mailer: Apple Mail (2.753) X-Provags-ID: V01U2FsdGVkX1/2zIsuS9bRJetkCMtB+Ai86KUfP1JuZmbDobB rJGm6J+kpryu8Uvf0fzoSLsjgNgiRKO3Ve1jrmwfLoLvW7yNzl MfVtclGO54NzyBhc9eJiA== X-Virus-Checked: Checked by ClamAV on apache.org Hi folks, is there a Maven repository containing OSGi-fied UIMA artifacts? Richard Eckart Technische Universit=E4t Darmstadt Institute of Linguistics and Literary Studies Department of English Linguistics Hochschulstrasse 1 64289 Darmstadt Germany From uima-user-returnlisa23@example.net Thu Jun 05 00:42:52 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 79153 invoked from network); 5 Jun 2008 00:42:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jun 2008 00:42:52 -0000 Received: (qmail 93526 invoked by uid 500); 5 Jun 2008 00:42:54 -0000 Delivered-To: lisa23@example.net Received: (qmail 93504 invoked by uid 500); 5 Jun 2008 00:42:54 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 93493 invoked by uid 99); 5 Jun 2008 00:42:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 17:42:54 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO moutng.kundenserver.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 00:42:04 +0000 Received: from [83.161.120.155] (p4FC77EB1.dip.t-dialin.net [83.161.120.155]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1K43YY3lW5-0003yQ; Thu, 05 Jun 2008 02:42:19 +0200 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <lisa23@example.net> References: <lisa23@example.net> <lisa23@example.net> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <lisa23@example.net> Content-Transfer-Encoding: quoted-printable From: Richard Eckart <lisa23@example.net> Subject: Re: Session variable potpurri in CPE Date: Thu, 5 Jun 2008 02:42:17 +0200 To: lisa23@example.net X-Mailer: Apple Mail (2.753) X-Provags-ID: V01U2FsdGVkX18oUEwD77Ty6EA+jjxQGmIn/1D8xkqS1hieJRp ZWhhRHC3I895ylv6tGoUIQCQpaZGiNq2iv3IzC+/iNmf1cpzPc zwzGANDfhhQpwbNqn/Rkg== X-Virus-Checked: Checked by ClamAV on apache.org Hi again, > It sounds like the values of these variables pertain to a particular > CAS (since you don't want the values to change until that CAS has been > fully processed). If so, then storing them them in the CAS was a fine > solution. The CollectionReader and CAS Consumers run in separate > threads, so the CollectionReader definitely may move on to a new CAS > before the CAS Consumer processes the first one. The problem is that I need to share data that is not a primitive type which I could represent in the CAS (it's a rather complex Java object). > If you wanted your Collection Reader and CAS Consumer so share data > that was *not* related to a particular CAS, you could use UIMA's > external resource mechanism to accomplish that. I was originally searching for that (because it was mentioned at the UIMA workshop at the LREC) but I only found out how to use the session variables. Do you have a pointer to finding out how to use that =20 mechanism? What I want is that wherever I put the Java object, it should be =20 automatically removed when a CAS is fully processed - no matter if it was =20 successful or not. The object is bound to a document but representable in the CAS. =20 Before I had an ID encoded in the CAS and passed the object out-of-band via a static =20 hashmap (CollectionReader puts object there under the ID and CASConsumer =20 reads it again). However I was not too happy with this solution. Would this scenario =20 be solvable with the external resources approach? Richard Eckart Technische Universit=E4t Darmstadt Institute of Linguistics and Literary Studies Department of English Linguistics Hochschulstrasse 1 64289 Darmstadt Germany From uima-user-returnlisa23@example.net Thu Jun 05 06:00:13 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 11732 invoked from network); 5 Jun 2008 06:00:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jun 2008 06:00:13 -0000 Received: (qmail 22969 invoked by uid 500); 5 Jun 2008 06:00:14 -0000 Delivered-To: lisa23@example.net Received: (qmail 22946 invoked by uid 500); 5 Jun 2008 06:00:14 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 22896 invoked by uid 99); 5 Jun 2008 06:00:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 23:00:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 05 Jun 2008 05:59:24 +0000 Received: (qmail invoked by alias); 05 Jun 2008 05:59:39 -0000 Received: from p5B205787.dip.t-dialin.net (EHLO [83.161.120.155]) [83.161.120.155] by mail.gmx.net (mp026) with SMTP; 05 Jun 2008 07:59:39 +0200 X-Authenticated: #25330878 X-Provags-ID: V01U2FsdGVkX19Ggxx7ZktGp1s81/9E0atgPxT+kpFUJIX07MX2GU NnMhJLSFcPsQw/ Message-ID: <lisa23@example.net> Date: Thu, 05 Jun 2008 07:59:40 +0200 From: Thilo Goetz <lisa23@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: lisa23@example.net Subject: Re: OSGi-fied UIMA Maven artifact repository? References: <lisa23@example.net> In-Reply-To: <lisa23@example.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Richard Eckart wrote: > Hi folks, > > is there a Maven repository containing OSGi-fied UIMA artifacts? > > Richard Eckart > > Technische Universität Darmstadt > Institute of Linguistics and Literary Studies > Department of English Linguistics > > Hochschulstrasse 1 > 64289 Darmstadt > Germany > > Hi Richard, the short answer is no. The somewhat longer answer is that there were some efforts in IBM Research to use OSGi as PEAR replacement, so as a packaging format for UIMA components. I haven't heard of this project in a while, so not sure if it's still active. --Thilo From uima-user-returnlisa23@example.net Thu Jun 05 08:19:43 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 61772 invoked from network); 5 Jun 2008 08:19:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jun 2008 08:19:43 -0000 Received: (qmail 13657 invoked by uid 500); 5 Jun 2008 08:19:45 -0000 Delivered-To: lisa23@example.net Received: (qmail 13635 invoked by uid 500); 5 Jun 2008 08:19:45 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 13624 invoked by uid 99); 5 Jun 2008 08:19:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 01:19:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fk-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 08:18:56 +0000 Received: by fk-out-0910.google.com with SMTP id 19so442976fkr.12 for <lisa23@example.net>; Thu, 05 Jun 2008 01:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=DdDS/LZD5pPIwR9QXRC4/5Nof0S7di4b69GjrIbw6PI=; b=D+JPXOhn8Ev6Ew4cAAmVRY/b/kOx/vkRgxGQ7bucKLs7T5A5qo49Jv/eAssp8KJs7s y4vk3HExMGrO2WoWMtjgTvmp7l2T14DhIE7Qa2+Yem5gzJSN0Y+jZIXHh4Y6dl29lb2y yiv4edN4HcUZ61nubQIqmEaR5Ja3+2H58V3KU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qx4NYutbfgr0hzne/ISN+lrEi3u06Bjqh7z9SRf977+jbRkHNLQTut+Oivf0x8T1+9 NDmlAZqgeSNacO1FoS/P7op8rysP+Y9wF16sv/TR9qEbvVSrbRWmUAh6T3Wh2rUpW5z9 g+4wzJvP5tAehNBUfA8vLWpKDMuLbM+7DT++k= Received: by 83.161.120.155 with SMTP id o3mr75509buf.48.1212653951705; Thu, 05 Jun 2008 01:19:11 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Thu, 5 Jun 2008 01:19:11 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Thu, 5 Jun 2008 10:19:11 +0200 From: "Mirko Jahn" <lisa23@example.net> To: lisa23@example.net Subject: Re: OSGi-fied UIMA Maven artifact repository? In-Reply-To: <lisa23@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <lisa23@example.net> <lisa23@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Hi Richard, there is an alphaworks project available, which ported UIMA to OSGi. It is alpha and more a proof of concept, but it worked fine for us. The documentation provided is pretty good to get you started, especially if you are familiar with OSGi. The package contains an adaptation layer for OSGi and a script to build a uima library bundle out of the latest uima version, so it should be still up to date (at least that was the intention). Have a look for yourself at: http://alphaworks.ibm.com/tech/dmeuima A maven repository, containing any of those artifacts doesn't exist, as far as I know of. At the time we were working on the subject, no one seemed to be interested in OSGi. I wonder if things have changed now and we were just to early :-) Cheers, Mirko On Thu, Jun 5, 2008 at 7:59 AM, Thilo Goetz <lisa23@example.net> wrote: > Richard Eckart wrote: >> >> Hi folks, >> >> is there a Maven repository containing OSGi-fied UIMA artifacts? >> >> Richard Eckart >> >> Technische Universit=E4t Darmstadt >> Institute of Linguistics and Literary Studies >> Department of English Linguistics >> >> Hochschulstrasse 1 >> 64289 Darmstadt >> Germany >> >> > > Hi Richard, > > the short answer is no. > > The somewhat longer answer is that there were some efforts in > IBM Research to use OSGi as PEAR replacement, so as a packaging > format for UIMA components. I haven't heard of this project in > a while, so not sure if it's still active. > > --Thilo > > From uima-user-returnlisa23@example.net Thu Jun 05 10:56:38 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 96986 invoked from network); 5 Jun 2008 10:56:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jun 2008 10:56:36 -0000 Received: (qmail 1562 invoked by uid 500); 5 Jun 2008 10:56:38 -0000 Delivered-To: lisa23@example.net Received: (qmail 1545 invoked by uid 500); 5 Jun 2008 10:56:38 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 1534 invoked by uid 99); 5 Jun 2008 10:56:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 03:56:38 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO moutng.kundenserver.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 10:55:41 +0000 Received: from [83.161.120.155] (p4FC77EB1.dip.t-dialin.net [83.161.120.155]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1K4D8U0E6D-0003yJ; Thu, 05 Jun 2008 12:56:02 +0200 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <lisa23@example.net> References: <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <lisa23@example.net> Content-Transfer-Encoding: quoted-printable From: Richard Eckart <lisa23@example.net> Subject: Re: OSGi-fied UIMA Maven artifact repository? Date: Thu, 5 Jun 2008 12:55:58 +0200 To: lisa23@example.net X-Mailer: Apple Mail (2.753) X-Provags-ID: V01U2FsdGVkX1/eXI3+CaNQledwhcljP7mn0Qs/YBg8kcNzKJa Z004qpWZlXYYdGdcNz0fsxmflO6q+tLr68FMRgrE27HO3syl+h jIetIVLZVB5Rea3pfE75w== X-Virus-Checked: Checked by ClamAV on apache.org Hi Mirko, > there is an alphaworks project available, which ported UIMA to OSGi. I know of the project. I have seen it has some very fine video =20 tutorials. I will certainly have another look at it in the future. I had hoped in the course the development of UDAT there might already be more UIMA OSGi infrastructure. My focus yesterday however was mainly in Maven integration and fighting with the Maven Bundle Plugin. Having an OSGi-enabled Maven repository would have been helpful. For now I gave up and revert to not using Maven because I didn't really manage to build my projects at the same time using Maven and Eclipse. > A maven repository, containing any of those artifacts doesn't exist, > as far as I know of. At the time we were working on the subject, no > one seemed to be interested in OSGi. I wonder if things have changed > now and we were just to early :-) Spring is working on OSGi integration and I have recently read a few articles about OSGi and Spring getting ever more popular in enterprises. So I guess the chances are good we are just early ;) Richard Eckart Technische Universit=E4t Darmstadt Institute of Linguistics and Literary Studies Department of English Linguistics Hochschulstrasse 1 64289 Darmstadt Germany From uima-user-returnlisa23@example.net Thu Jun 05 11:16:34 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 1825 invoked from network); 5 Jun 2008 11:16:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jun 2008 11:16:34 -0000 Received: (qmail 29944 invoked by uid 500); 5 Jun 2008 11:16:36 -0000 Delivered-To: lisa23@example.net Received: (qmail 29925 invoked by uid 500); 5 Jun 2008 11:16:36 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 29914 invoked by uid 99); 5 Jun 2008 11:16:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 04:16:36 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO gateway11.websitewelcome.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 05 Jun 2008 11:15:45 +0000 Received: (qmail 6523 invoked from network); 5 Jun 2008 11:19:38 -0000 Received: from gator74.hostgator.com (83.161.120.155) by gateway11.websitewelcome.com with SMTP; 5 Jun 2008 11:19:38 -0000 Received: from ool-44c6c63b.dyn.optonline.net ([83.161.120.155]:37560 helo=[83.161.120.155]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from <lisa23@example.net>) id 1K4DRn-0005WI-UY for lisa23@example.net; Thu, 05 Jun 2008 06:16:00 -0500 Message-ID: <lisa23@example.net> Date: Thu, 05 Jun 2008 07:16:06 -0400 From: Marshall Schor <lisa23@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: lisa23@example.net Subject: Re: OSGi-fied UIMA Maven artifact repository? References: <lisa23@example.net> In-Reply-To: <lisa23@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 Richard Eckart wrote: > Hi folks, > > is there a Maven repository containing OSGi-fied UIMA artifacts? Hi Richard, I think this area could use some focus / attention, and maybe you (or others interested in this) can help out here. The UIMA Tooling includes some Eclipse-based plugins, and for this we recently switched our build process to use Apache Felix, which is an open source implmentation of many things in OSGi. The part we are using is the maven bundle plugin. That process includes something that stores the bundle in a OBR (OSGi Bundle Repository). If you google obr OSGi Bundle Repository you can see a bunch of information on the web about this, including a presentation about the OBR idea, at http://felix.apache.org/site/presentations.data/OBR-OSGi-Community-20070627.pdf I haven't investigated this myself, so please feel free to explore and discuss potential ideas here. -Marshall From uima-user-returnlisa23@example.net Thu Jun 05 14:08:15 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 89404 invoked from network); 5 Jun 2008 14:08:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jun 2008 14:08:15 -0000 Received: (qmail 40581 invoked by uid 500); 5 Jun 2008 14:08:18 -0000 Delivered-To: lisa23@example.net Received: (qmail 40562 invoked by uid 500); 5 Jun 2008 14:08:18 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 40551 invoked by uid 99); 5 Jun 2008 14:08:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 07:08:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO rv-out-0708.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 14:07:29 +0000 Received: by rv-out-0708.google.com with SMTP id k29so717681rvb.0 for <lisa23@example.net>; Thu, 05 Jun 2008 07:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=q1KVHXjmgww21UzUC0m2bY8HGUiFNtf1AsTRIEUsE20=; b=qhOS4lPjfRKGL90DtGb40tb2JYDfYV5JmRJN7nU9R2cVoCALbpT6r5vqXXXgETdOnA jLqB7/wktryZ2Bpo0CFcH1uNLj6aCSDa9csSkHNTB77XM6PWznqxREvUgMWqwF5jujpR OQ3ppAxllT2bsrNNKl4uLTA6ho+0NIMgggXZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=oF/pUF39Ef1cnZ8bO9XWlOvj3kKbgL3YVnjPXArSAGDyQaJIwzR9MXm2+81MKhgfdU /NNJVBz65M9BfFHzuTJMv1H6qQy2qU9nG+AxmUYb320lb2KMY4gqMeGzkom60Aq6UT+M D7kMliF0EJOq815JK2NFsg5Cv80o4ppDzE+VA= Received: by 83.161.120.155 with SMTP id q9mr893658rvk.47.1212674866044; Thu, 05 Jun 2008 07:07:46 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Thu, 5 Jun 2008 07:07:45 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Thu, 5 Jun 2008 10:07:45 -0400 From: "Adam Lally" <lisa23@example.net> Sender: lisa23@example.net To: lisa23@example.net Subject: Re: Session variable potpurri in CPE In-Reply-To: <lisa23@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> X-Google-Sender-Auth: 97e56e1dbfa430f7 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Jun 4, 2008 at 8:42 PM, Richard Eckart <lisa23@example.net> wrote: >> If you wanted your Collection Reader and CAS Consumer so share data >> that was *not* related to a particular CAS, you could use UIMA's >> external resource mechanism to accomplish that. > > I was originally searching for that (because it was mentioned at the > UIMA workshop at the LREC) but I only found out how to use the session > variables. Do you have a pointer to finding out how to use that mechanism? > The best place to start for learning about external resources is this chapter of the tutorial: http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.aae.accessing_external_resource_files What may at first be confusing is that this is talking about sharing access to a data file between components, whereas you don't have a file. But the same mechanism can be used without reading from a file. You could just use a dummy file, or you could use a customResourceSpecifier instead of a fileResourceSpecifier, see: http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.component_descriptor.custom_resource_specifiers > What I want is that wherever I put the Java object, it should be > automatically > removed when a CAS is fully processed - no matter if it was successful or > not. > The object is bound to a document but representable in the CAS. Before I had > an > ID encoded in the CAS and passed the object out-of-band via a static hashmap > (CollectionReader puts object there under the ID and CASConsumer reads it > again). > However I was not too happy with this solution. Would this scenario be > solvable > with the external resources approach? > I think you will still need a hashmap keyed on the ID encoded in the CAS (since multiple CASes may be being processed concurrently), but instead of making it static you can put it in your external resource object that's then shared between your components. -Adam From uima-user-returnlisa23@example.net Thu Jun 05 20:57:22 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 16831 invoked from network); 5 Jun 2008 20:57:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jun 2008 20:57:22 -0000 Received: (qmail 89206 invoked by uid 500); 5 Jun 2008 20:57:24 -0000 Delivered-To: lisa23@example.net Received: (qmail 89184 invoked by uid 500); 5 Jun 2008 20:57:24 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 89173 invoked by uid 99); 5 Jun 2008 20:57:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 13:57:24 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fg-out-1718.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 20:56:35 +0000 Received: by fg-out-1718.google.com with SMTP id l26so459280fgb.26 for <lisa23@example.net>; Thu, 05 Jun 2008 13:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=2rwLSUfJ4WwdDhDRDglNzjlIzDCEBQngaAPEBnyRaIo=; b=GKFgyzbdNb0LVbPglksuC9DX/vhaiOD/swrYRv9D/kp27fuCI9F/ymA6tYyoL99HOd l/DVBw/GG78lRhiCGz3wI2Od+H9oULpeyF0Y8PZdFE2mizqY54juGRHWve6eJUl+VoKj UiQobqcwC0pesiire5xclQ4KkLT2GZPKdUnTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=ww8DFptkO632DR81EsToFNUirEuKddeRAjFKxfW4/dGGrCw6cn9PfWjcQ0s7uTVbhj JNBTRVII4BTZmMzOORHk03yZ0hwHR5H7HrCcuZhPhO3yLUvvjJC3taLvlEjgU1vNv6PF aaXiIOPnveFIxL1lTCfcaRqCiZJwl7fFtADKw= Received: by 83.161.120.155 with SMTP id j11mr2905544fgj.7.1212699410845; Thu, 05 Jun 2008 13:56:50 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Thu, 5 Jun 2008 13:56:50 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Thu, 5 Jun 2008 16:56:50 -0400 From: "Tong Fin" <lisa23@example.net> To: lisa23@example.net Subject: Improving UIMA Debug Capabilities MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2295_12729463.1212699410817" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2295_12729463.1212699410817 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have been thinking about how to improve the ability to debug and maintain UIMA components. Based on talking with my colleagues, two problems have caught my interest: 1. for any feature structure in a CAS, knowing which UIMA component created and/or modified it, and 2. being able to debug problems with a component that is failing when integrated into someone else's aggregate analysis engine. In the Apache UIMA Wiki, I have posted some ideas about providing solutions for these problems: http://cwiki.apache.org/UIMA/improving-uima-debug-capabilities.html I wonder how many UIMA users also think these are important problems to solve? Do the ideas on the wiki make sense? Are there other issues related to debugging UIMA components that you feel are equally or more important? Thank you for your comments, Tong ------=_Part_2295_12729463.1212699410817-- From uima-user-returnlisa23@example.net Mon Jun 09 12:32:55 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 15371 invoked from network); 9 Jun 2008 12:32:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Jun 2008 12:32:55 -0000 Received: (qmail 12848 invoked by uid 500); 9 Jun 2008 12:32:58 -0000 Delivered-To: lisa23@example.net Received: (qmail 12820 invoked by uid 500); 9 Jun 2008 12:32:57 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 12809 invoked by uid 99); 9 Jun 2008 12:32:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 05:32:57 -0700 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: local policy) Received: from [83.161.120.155] (HELO pinea.xerox.fr) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 12:32:00 +0000 Received: from meije.grenoble.xrce.xerox.com (unknown [83.161.120.155]) by pinea.xerox.fr (Postfix) with ESMTP id 8B78923D30E for <lisa23@example.net>; Mon, 9 Jun 2008 14:32:22 +0200 (CEST) Received: from chauvet.grenoble.xrce.xerox.com (chauvet.grenoble.xrce.xerox.com [83.161.120.155]) by meije.grenoble.xrce.xerox.com (8.13.8/8.13.8) with ESMTP id m59CWMGZ019711 for <lisa23@example.net>; Mon, 9 Jun 2008 14:32:22 +0200 Message-ID: <lisa23@example.net> Date: Mon, 09 Jun 2008 14:32:22 +0200 From: Aaron Kaplan <lisa23@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20080501) MIME-Version: 1.0 To: lisa23@example.net Subject: Problem with PEAR classpath Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have two annotators that share a type system. Each is packaged in a separate pear with its own copy of the type system descriptor and the associated JCas classes. When I build an aggregate annotator using the two pear descriptors and run it in the CVD, I get a run-time exception in the process() method of the second annotator saying that it can't find one of the cover classes. I have verified that the .class file for this class is present in the bin/ subdirectory of the annotator's pear installation directory, so it seems like the classpath must not be getting set properly. The following works fine: load the first annotator's pear descriptor in the CVD, run the annotator on an input text file, save the result in an XMI CAS file; load the second annotator's pear descriptor in the CVD, load the XMI CAS file, run the annotator on that. It's when I combine the two annotators into an aggregate and try to run it in one go that I have a problem. Does it sound like I'm doing something wrong? How can I debug this? Thanks -Aaron From uima-user-returnlisa23@example.net Mon Jun 09 15:05:01 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 19499 invoked from network); 9 Jun 2008 15:05:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Jun 2008 15:05:00 -0000 Received: (qmail 57556 invoked by uid 500); 9 Jun 2008 15:05:03 -0000 Delivered-To: lisa23@example.net Received: (qmail 57538 invoked by uid 500); 9 Jun 2008 15:05:03 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 57527 invoked by uid 99); 9 Jun 2008 15:05:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 08:05:02 -0700 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 lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO gateway01.websitewelcome.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 09 Jun 2008 15:04:05 +0000 Received: (qmail 14299 invoked from network); 9 Jun 2008 15:15:39 -0000 Received: from gator74.hostgator.com (83.161.120.155) by gateway01.websitewelcome.com with SMTP; 9 Jun 2008 15:15:39 -0000 Received: from d235-160-149.home1.cgocable.net ([83.161.120.155]:1251 helo=[83.161.120.155]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from <lisa23@example.net>) id 1K5iv0-00024g-Qs for lisa23@example.net; Mon, 09 Jun 2008 10:04:22 -0500 Message-ID: <lisa23@example.net> Date: Mon, 09 Jun 2008 11:04:32 -0400 From: Marshall Schor <lisa23@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: lisa23@example.net Subject: Re: Problem with PEAR classpath References: <lisa23@example.net> In-Reply-To: <lisa23@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 Aaron - When running Pears contained in an aggregate, the Java classpath used to load the JCas (and other) classes is switched to be what the Pear specifies. The classpath used by the PEAR is built using the jars in the "lib" directory, plus any additional paths that are specified in the PEAR installation descriptor's "set_env_variable" action, done by specifying the "CLASSPATH" environmental variable. (see http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.pear.installation_descriptor and scroll down to the section 83.161.120.155 ) Can you verify that the JCas cover classes are either in a Jar file that is in the Pear's lib directory, or that you have added a environment variable setting action for the Pear specifying the CLASSPATH environmental variable and having it point to where the JCas classes are in the Pear structure? Thanks. -Marshall Aaron Kaplan wrote: > I have two annotators that share a type system. Each is packaged in a > separate pear with its own copy of the type system descriptor and the > associated JCas classes. When I build an aggregate annotator using > the two pear descriptors and run it in the CVD, I get a run-time > exception in the process() method of the second annotator saying that > it can't find one of the cover classes. I have verified that the > .class file for this class is present in the bin/ subdirectory of the > annotator's pear installation directory, so it seems like the > classpath must not be getting set properly. > > The following works fine: load the first annotator's pear descriptor > in the CVD, run the annotator on an input text file, save the result > in an XMI CAS file; load the second annotator's pear descriptor in the > CVD, load the XMI CAS file, run the annotator on that. It's when I > combine the two annotators into an aggregate and try to run it in one > go that I have a problem. > > Does it sound like I'm doing something wrong? How can I debug this? > Thanks > -Aaron > > From uima-user-returnlisa23@example.net Tue Jun 10 07:32:40 2008 Return-Path: <uima-user-returnlisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 40241 invoked from network); 10 Jun 2008 07:32:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Jun 2008 07:32:40 -0000 Received: (qmail 54529 invoked by uid 500); 10 Jun 2008 07:32:43 -0000 Delivered-To: lisa23@example.net Received: (qmail 54501 invoked by uid 500); 10 Jun 2008 07:32:43 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <uima-user.incubator.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 54490 invoked by uid 99); 10 Jun 2008 07:32:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 00:32:42 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO pinea.xerox.fr) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 07:31:52 +0000 Received: from meije.grenoble.xrce.xerox.com (unknown [83.161.120.155]) by pinea.xerox.fr (Postfix) with ESMTP id EA42123D346 for <lisa23@example.net>; Tue, 10
{'source': 'Apache Software Foundation Public Mail Archives'}