Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 87141 invoked from network); 26 Nov 2008 13:12:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2008 13:12:11 -0000 Received: (qmail 28725 invoked by uid 500); 26 Nov 2008 13:12:21 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 28711 invoked by uid 500); 26 Nov 2008 13:12:21 -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 28700 invoked by uid 99); 26 Nov 2008 13:12:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 05:12:21 -0800 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 eaepstein@gmail.com designates 209.85.146.177 as permitted sender) Received: from [209.85.146.177] (HELO wa-out-1112.google.com) (209.85.146.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 13:10:55 +0000 Received: by wa-out-1112.google.com with SMTP id l24so251879waf.12 for ; Wed, 26 Nov 2008 05:11:41 -0800 (PST) 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=sPIRX59L8XHwt7UHyU/GLmHdm5l66rZf3xRliot2470=; b=TXaknvnJASlvO3y+A7UZMiriPoj0frGJTYBY94DwjaOl7502Tj+e3Aivzr4jJ1U379 wKsZDV2lW/NPj7QFMhxupbEwps5dJOm1eu8W/PFUpXG4ZdMTYLS9qEIFUikyFjSOA9JZ J5CQzFJkjacnCmghBUCfPAgGz0BPaFogbdpyI= 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=ZUhAgp1thb/gWltkrBzFcPQ+ri5sGvspZMcKoVgsxZujgVeEtsQh/uZ4PIsUjinc5s uSGd3oHH+/dBTfDH+9xkLnlIrbIKYtUQmTX1QX+Abzo8pHU753T4sv2ou7H8W/XN4P8K FZttsWaHV1E+PePJ4BwJAiVkJ3Fv9I1MtIY/Y= Received: by 10.114.127.4 with SMTP id z4mr3323412wac.165.1227705101127; Wed, 26 Nov 2008 05:11:41 -0800 (PST) Received: by 10.114.127.16 with HTTP; Wed, 26 Nov 2008 05:11:41 -0800 (PST) Message-ID: Date: Wed, 26 Nov 2008 08:11:41 -0500 From: "Eddie Epstein" To: uima-user@incubator.apache.org Subject: Re: Additional Runtime Arguments In-Reply-To: <2A5EB5171962E44F84756823FD32249502C66E60@exchange.interactivesys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2A5EB5171962E44F84756823FD32249502C66E60@exchange.interactivesys.com> X-Virus-Checked: Checked by ClamAV on apache.org Not sure if this will help, but the CAS supports a concept of multiple "views", where each view is itself a CAS object. The process(cas) method can then be passed a specified view, so that the annotator only deals with a subset of the entire CAS. Some have used views to deal with complex documents, creating a view for each of several document parts and then passing specified view(s) to the appropriate AE. For more on CAS views, 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 Regards, Eddie On Tue, Nov 25, 2008 at 4:11 PM, Thomas Polzin wrote: > I probably missed something in the documentation but here is my problem: > > > I'm trying to process a pretty complex structured document and I do not > want to translate the entire structure into annotations. Instead I would > like to pass some object containing this additional structure to the > respective analysis engines. Note that a static object will not work. > Also, I do not want pass this object to the engines when they are > constructed/initialized. The best solution I came up with so far is to > subclass the CAS object and then to downcast to it in the process( CAS > cas) function. Does this make sense? Is there a better solution? > > Thanks so much in advance > > Thomas > >