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 D3034EDC3 for ; Mon, 3 Dec 2012 22:33:06 +0000 (UTC) Received: (qmail 8957 invoked by uid 500); 3 Dec 2012 22:33:06 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 8927 invoked by uid 500); 3 Dec 2012 22:33:06 -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 8919 invoked by uid 99); 3 Dec 2012 22:33:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 22:33:06 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of himanshu.gahlot86@gmail.com designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-ie0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 22:33:00 +0000 Received: by mail-ie0-f175.google.com with SMTP id qd14so5006163ieb.6 for ; Mon, 03 Dec 2012 14:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=8UVwWre+2Vp32Zsbl6EVsn52YgJEm/8iMgd1geCq5Ao=; b=TXaDsxN9kZSBcqIOgCRVGyMK4qNK2VZuGirNGkRvI2EGr0HtL6CkXSWXMD8mOJ0aUV KE1SaO0a0PyQYqBNuxZayDglThxucU5J9tC+fvGOBYIjGWXTRlD4OzCktsgQAfVHCbq8 nBYtyEGtTH1HUtKR7AjL0RFivzksnjN1k+pvSjpXKHATmSmRCeXYlam22QhxrBqh/iWB 9ZzDQW3ItvyRiAffN9oH9B9KCieLu/6QcBZ6WpNM+DvmkhqeSGldnvs5AZCtHzjNO0bi jxDTeHwm/jws3vYXTF5rvcpDcey5qJ73FmOeapiyhmWPtSCSnL0kURvO3/rGI7i+pFhh KbKA== Received: by 10.50.195.168 with SMTP id if8mr533431igc.71.1354573959444; Mon, 03 Dec 2012 14:32:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.79.228 with HTTP; Mon, 3 Dec 2012 14:32:18 -0800 (PST) In-Reply-To: References: From: Himanshu Gahlot Date: Mon, 3 Dec 2012 14:32:18 -0800 Message-ID: Subject: Re: Is is possible to pass cas view to the process method of an annotator? To: user@uima.apache.org Content-Type: multipart/alternative; boundary=14dae934102dacb83204cffa531e X-Virus-Checked: Checked by ClamAV on apache.org --14dae934102dacb83204cffa531e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable One more question on a related note: Is it possible to set sofa mappings in the Flow Controller? From all the code usages that I have come across it seems that sofa mappings can only be set while building the AnalysisEngine. Himanshu On Mon, Dec 3, 2012 at 2:17 PM, Himanshu Gahlot wrote: > Thanks Richard! I was looking for the 'Maybe' solution and it should work > for my use case. > > Himanshu > > > > On Mon, Dec 3, 2012 at 11:20 AM, Richard Eckart de Castilho < > eckart@ukp.informatik.tu-darmstadt.de> wrote: > >> Hello Himanshu, >> >> yes, no and maybe. >> >> Yes: you can use "Sofa mapping". You should find corresponding >> configuration possibilities >> on aggregate analysis engines and in the CPEs. >> >> In uimaFIT you'd want to look at the AggregateBuilder: >> >> >> http://uimafit.googlecode.com/svn/trunk/apidocs/org/uimafit/factory/Aggr= egateBuilder.html >> >> No: a Sofa mapping only maps a particular named view to the default view >> of an AE, it cannot >> pass one view after the other to an AE. >> >> Maybe: if you don't mind, you should be able to have your process three >> times in an aggregate and >> every time you map another view to its default view. >> >> Cheers, >> >> -- Richard >> >> Am 03.12.2012 um 19:48 schrieb Himanshu Gahlot < >> himanshu.gahlot86@gmail.com> >> : >> >> > Hi, >> > >> > I want to create 3 views of the base cas and pass them one by one to >> the process >> > method of my annotator. From the documentation I know that we can pass >> only the >> > base cas to the anlaysis engine unless the annotator is sofa aware. Bu= t >> even if >> > the annotator is sofa aware I am not able to pass any view to the >> annotator, >> > since the cas passed in the sofa aware annotator has no sofa attached >> to it and >> > I need to fetch/create the view in the process method itself. Is there >> a way so >> > that I do not have to write the view accessing logic within the >> annotator and >> > can pass a view of the cas to the process method itself? In short, I >> would like >> > the following functionality to work: >> > >> > JCas casView1 =3D baseCas.createView("view1"); >> > ae.process(casView1); >> > >> > and in the process method of the annotator, the cas should be the >> casView1. >> >> >> -- >> ------------------------------------------------------------------- >> Richard Eckart de Castilho >> Technical Lead >> Ubiquitous Knowledge Processing Lab (UKP-TUD) >> FB 20 Computer Science Department >> Technische Universit=E4t Darmstadt >> Hochschulstr. 10, D-64289 Darmstadt, Germany >> phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117 >> eckart@ukp.informatik.tu-darmstadt.de >> www.ukp.tu-darmstadt.de >> Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de >> ------------------------------------------------------------------- >> >> >> >> >> >> >> > --14dae934102dacb83204cffa531e--