From user-return-4789-apmail-uima-user-archive=uima.apache.org@uima.apache.org Tue Feb 26 22:59:27 2013 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 0A4A7E89C for ; Tue, 26 Feb 2013 22:59:27 +0000 (UTC) Received: (qmail 97360 invoked by uid 500); 26 Feb 2013 22:59:26 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 97333 invoked by uid 500); 26 Feb 2013 22:59:26 -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 97325 invoked by uid 99); 26 Feb 2013 22:59:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 22:59:26 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of heljohns@cisco.com designates 173.37.86.78 as permitted sender) Received: from [173.37.86.78] (HELO rcdn-iport-7.cisco.com) (173.37.86.78) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 22:59:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3849; q=dns/txt; s=iport; t=1361919557; x=1363129157; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=AF2p0Uwv/U5PrY9YeYI4YORCsEJ59Ab4lha+CUWYogI=; b=eSSZKA1SFXLV2X3JxBNZuPm5CVoJmOo/5XLTG1zyf9TqnSHeVOREZ3da SN3rylsizIQIA1ySVxeCMEn9eXgzG/dEXUtLDTes6hzX00i84MkLbxLTW RaStJrV8ooUuw9pjhSxuDtzWkrVVuQnLMlgT2D7YPkpjvivQ1pyWeUj25 s=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEFAFs9LVGtJXHB/2dsb2JhbABFwXqBARZzgh8BAQEEOksEAgEIEQQBAQsUCQcyFAkIAQEEEwiIC699kAqNU4EQJhIGgllhA6cogVKBNoFyNQ X-IronPort-AV: E=Sophos;i="4.84,743,1355097600"; d="scan'208";a="181504836" Received: from rcdn-core2-6.cisco.com ([173.37.113.193]) by rcdn-iport-7.cisco.com with ESMTP; 26 Feb 2013 22:58:56 +0000 Received: from xhc-aln-x13.cisco.com (xhc-aln-x13.cisco.com [173.36.12.87]) by rcdn-core2-6.cisco.com (8.14.5/8.14.5) with ESMTP id r1QMwuXw012541 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 26 Feb 2013 22:58:56 GMT Received: from xmb-rcd-x03.cisco.com ([169.254.7.17]) by xhc-aln-x13.cisco.com ([173.36.12.87]) with mapi id 14.02.0318.004; Tue, 26 Feb 2013 16:58:55 -0600 From: "Helen Johnson -X (heljohns - Infobahn Softworld Inc at Cisco)" To: "user@uima.apache.org" Subject: RE: problem retrieving the annotations of a specific sofa view over a REST service Thread-Topic: problem retrieving the annotations of a specific sofa view over a REST service Thread-Index: Ac4UYxUgrDIERsflQZWYEKobcPhQlgAB1XvwAAE9i5A= Date: Tue, 26 Feb 2013 22:58:55 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.21.77.41] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Larry, Thanks for the response, I'm still a little confused ... =20 >> "I do a JCas.reset at the end of the webservice method" Just to be clear, you are talking about this on the client-side code, right= ? And the PEAR is the server-side? I do this too: first the server does a cas.reset(), then the server sets d= ata into the cas by cas.setDocumentText(), then the server requests the AE = (actually an AAE) that it unpacked from the PEAR to process the data in the= cas by ae.process(cas). >> "So before I do that I copy the annotations into some serializable POJOs= of my own" Again, you are talking client-side code? If so, how do you get a sofa-view of the CAS that is not the default "_Init= ialView"? This is where I am having trouble. Except that you say,=20 >>"Those are what I return to the client"=20 So it sounds like the serializable POJO creation might be server-side code = that resides inside the UIMA-PEAR? Is this a CASConsumer or something that creates these POJOs? How do you connect the POJOs back to the client side? Cheers, Helen -----Original Message----- From: Kline, Larry D [mailto:Larry.Kline@USONCOLOGY.COM]=20 Sent: Tuesday, February 26, 2013 2:50 PM To: user@uima.apache.org Subject: RE: problem retrieving the annotations of a specific sofa view ove= r a REST service I have a similar pipeline and deployment (as a pear in a web service). I do a JCas.reset at the end of the web service method. This of course cle= ars all the annotations out of the CAS. So before I do that I copy the ann= otations into some serializable POJOs of my own. Those are what I return t= o the client. I'm not using a RESTful interface so I generate client side = code from the web service's WSDL. I'm not sure that UIMA annotations can be serialized over a web service cal= l. Or if you would even want to. They have a very complicated internal st= ructure. Larry Kline -----Original Message----- From: Helen Johnson -X (heljohns - Infobahn Softworld Inc at Cisco) [mailto= :heljohns@cisco.com] Sent: Tuesday, February 26, 2013 12:52 PM To: user@uima.apache.org Subject: problem retrieving the annotations of a specific sofa view over a = REST service I have a UIMA pipeline that consists of an AAE that uses multiple sofa view= s. The first component of the AAE takes the _InitialView cas.documentText, whi= ch is XML, converts it to plain text, and inputs this new text and some ann= otations into a new view called plainText (thank you to those last week tha= t helped me figure out this labyrinth). The subsequent AEs in the AAE create many annotations. A final AnnotationPrinter AE at the end of the pipeline shows that the plai= nText view of the CAS contains the annotations I expect. Next, this AAE is wrapped into a PEAR and deployed onto a tomcat server as = a REST service (using the sandbox SimpleServer). The response to a call to the AAE server is supposed to be the annotations.= However, the result is blank - there are no annotations being sent back fr= om the AAE. - Could this have to do with the annotations being associated with the plainText view instead of the _InitialView? - If so, how do I force the AAE to return the annotations associated with the plainText view? - Or, how do I set the plainText view annotations to be available in the "default" view? Thank you, Helen Johnson The contents of this electronic mail message and any attachments are = confidential, possibly privileged and intended for the addressee(s) only.Only the addressee(s) may read, disseminate, retain or otherwise use this= message. If received in error, please immediately inform the sender and th= en delete this message without disclosing its contents to anyone.