Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 60327 invoked from network); 3 Mar 2009 04:36:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2009 04:36:41 -0000 Received: (qmail 66748 invoked by uid 500); 3 Mar 2009 04:36:41 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 66716 invoked by uid 500); 3 Mar 2009 04:36:41 -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 66705 invoked by uid 99); 3 Mar 2009 04:36:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 20:36:41 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tong.fin@gmail.com designates 209.85.217.166 as permitted sender) Received: from [209.85.217.166] (HELO mail-gx0-f166.google.com) (209.85.217.166) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2009 04:36:32 +0000 Received: by gxk10 with SMTP id 10so5008178gxk.12 for ; Mon, 02 Mar 2009 20:36:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Q6J6Mk1LlaAvz78WpB+glqWxFuKtBt04U/IGVhY58/g=; b=auvmvHkghEmkfjk5pFz6BK+69IDqSlV8NMgY6CXHvbbpyrjcDRAhvnkV8CkBWNwRnH y5x9NTdH+q96BB3EffAyuLbQidIQ/SK0hb95IZ+9E8oCITzF9PmCurgU8yHsVCpN/0oL 80N1RhsTsBBpDo4s1XDeuBp8AN9HPBISPWUX0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=OT0lADSSC2cjk0zuCCEdBtwsCSAyK0rW/T16JJIUu3+HpzCPMnxYwkx81mAkBVknLd rhfDvmKhsPtzhF235NC7LhvZV4Lds+lxyithJCt+D4fYJuXix7rqqoRCG9LtKp+VAhtm wYVlW1RNT0s6oChQMyxwqrRRkwf1g2vsbk3BA= MIME-Version: 1.0 Received: by 10.231.17.74 with SMTP id r10mr3526841iba.13.1236054970713; Mon, 02 Mar 2009 20:36:10 -0800 (PST) In-Reply-To: <3FABBC39-759A-4F58-A4AC-8A41A047A7C8@gmail.com> References: <991df1420903021747p488ef409naacc4e805b9ddf26@mail.gmail.com> <3FABBC39-759A-4F58-A4AC-8A41A047A7C8@gmail.com> Date: Mon, 2 Mar 2009 23:36:10 -0500 Message-ID: <991df1420903022036n6caf86b3sfaec71998f59ab4e@mail.gmail.com> Subject: Re: Is there an example of a ResultSpecFile in the SimpleServer? From: Tong Fin To: uima-user@incubator.apache.org Content-Type: multipart/alternative; boundary=002215046c8b73c57204642f790e X-Virus-Checked: Checked by ClamAV on apache.org --002215046c8b73c57204642f790e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Loren, I am not sure if I understand your problem. Let me try. In your web.xml, you define the DescriptorPath parameter. The value of this parameter will tell the Simple Server how to find the Analysis Engine (in your case, it is an aggregate) to be used as a service. BUT, it is not enough since you need to tell Simple Server how to return the "results" (that is a "mapping" from UIMA types to "your defined types"). This returned results are specified in an XML file (conforming to the XML schema defined by Simple Server). In the web.xml, you will need to define the ResultSpecFile parameter. For example: ResultSpecFile path_to_your_ResultSpec_XML_File_relative_to_your_web_app -- Tong On Mon, Mar 2, 2009 at 9:10 PM, Loren Cahlander wrote: > Tong, > > I am using the DescriptorPath parameter in the web.xml file: > > > simple-server-test > > org.apache.uima.simpleserver.servlet.SimpleServerServlet > > > > DescriptorPath > > WEB-INF/resources/descriptors/test.xml > > > > > Where test.xml is an aggregate > > > > org.apache.uima.java > false > > > > > > > > > > test > > 1.0 > > > > > > WhitespaceTokenizer > HmmTagger > > > > > > > > > > > > > true > true > false > > > > > > > Loren Cahlander > > > > On Mar 2, 2009, at 07:47 PM, Tong Fin wrote: > > Loren, >> In the UIMA Simple Server User Guide >> documentation< >> http://incubator.apache.org/uima/downloads/sandbox/simple-server/simpleServerUserGuide.html#d0e134 >> >, >> >> there is a description on how to use the "WhitespaceTokenizer" (also in >> the >> sandbox) as a simple service. >> >> You can find the example of web.inf and ResultSpecFile for >> "WhitespaceTokenizer" in the following directory of the Simple Server >> project: >> SimpleServer/src/main/resources/samples >> >> -- Tong >> >> On Mon, Mar 2, 2009 at 8:15 PM, Loren Cahlander >> wrote: >> >> I am looking for an example of a ResultSpecFile entry for the >>> SimpleServer >>> in the Sandbox? Does anyone have an example? >>> >>> org.apache.uima.simpleserver.servlet.SimpleServerServlet.initServer() >>> >>> String resultSpecParamValue = getInitParameter("ResultSpecFile"); >>> if (resultSpecParamValue != null) { >>> resultSpec = new File(this.baseWebappDirectory.getAbsoluteFile(), >>> resultSpecParamValue); >>> } >>> >>> >>> Thank you, >>> >>> Loren Cahlander >>> >>> >>> >> >> -- >> Tong >> > > -- Tong --002215046c8b73c57204642f790e--