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 0C204E522 for ; Mon, 3 Dec 2012 19:21:39 +0000 (UTC) Received: (qmail 82893 invoked by uid 500); 3 Dec 2012 19:21:38 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 82860 invoked by uid 500); 3 Dec 2012 19:21:38 -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 82851 invoked by uid 99); 3 Dec 2012 19:21:38 -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 19:21:38 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [130.83.156.225] (HELO lnx500.hrz.tu-darmstadt.de) (130.83.156.225) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 19:21:30 +0000 Received: from mx.ukp.informatik.tu-darmstadt.de (fansworth.ukp.informatik.tu-darmstadt.de [130.83.167.132]) by lnx500.hrz.tu-darmstadt.de (8.14.4/8.14.4/HRZ/PMX) with ESMTP id qB3JKx8N004773 for ; Mon, 3 Dec 2012 20:20:59 +0100 (envelope-from eckart@ukp.informatik.tu-darmstadt.de) Received: from amy.ukp.informatik.tu-darmstadt.de ([fe80::e194:b7dc:c046:9b16]) by FANSWORTH.ukp.informatik.tu-darmstadt.de ([fe80::4462:cc70:fa72:847e%14]) with mapi id 14.02.0318.004; Mon, 3 Dec 2012 20:20:59 +0100 From: Richard Eckart de Castilho To: "" Subject: Re: Is is possible to pass cas view to the process method of an annotator? Thread-Topic: Is is possible to pass cas view to the process method of an annotator? Thread-Index: AQHN0YcPFOqOD1yRAUOvLl11wnsPPJgHYtMA Date: Mon, 3 Dec 2012 19:20:58 +0000 Message-ID: References: In-Reply-To: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [130.83.167.135] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <0527BADB56677A42BE130A2ED42575D1@ukp.informatik.tu-darmstadt.de> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-PMX-TU: seen v1.2 by 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.12.3.191215 X-PMX-RELAY: outgoing X-Virus-Checked: Checked by ClamAV on apache.org Hello Himanshu, yes, no and maybe. Yes: you can use "Sofa mapping". You should find corresponding configuratio= n 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/Aggrega= teBuilder.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 tim= es 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 : > Hi, >=20 > 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 on= ly the > base cas to the anlaysis engine unless the annotator is sofa aware. But e= ven if > the annotator is sofa aware I am not able to pass any view to the annotat= or, > 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 woul= d like > the following functionality to work: >=20 > JCas casView1 =3D baseCas.createView("view1"); > ae.process(casView1); >=20 > and in the process method of the annotator, the cas should be the casView= 1. --=20 -------------------------------------------------------------------=20 Richard Eckart de Castilho Technical Lead Ubiquitous Knowledge Processing Lab (UKP-TUD)=20 FB 20 Computer Science Department =20 Technische Universit=E4t Darmstadt=20 Hochschulstr. 10, D-64289 Darmstadt, Germany=20 phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117 eckart@ukp.informatik.tu-darmstadt.de=20 www.ukp.tu-darmstadt.de=20 Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de -------------------------------------------------------------------=20