Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 6271 invoked from network); 12 Jul 2007 07:49:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2007 07:49:55 -0000 Received: (qmail 44679 invoked by uid 500); 12 Jul 2007 07:49:58 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 44665 invoked by uid 500); 12 Jul 2007 07:49:58 -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 44656 invoked by uid 99); 12 Jul 2007 07:49:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 00:49:58 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_AHBL_RHSBL,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of kanoyoshinobu@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 00:49:54 -0700 Received: by py-out-1112.google.com with SMTP id d32so140330pye for ; Thu, 12 Jul 2007 00:49:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=PqQ5wjWodZJUevqW6H1tPvOQ4cUeclfuHQP9ZCaFfYEJlICfA/d63GCQtvL/Q98KWWnRTQ8DAhGaUKlQFrN8U6f1slQ2NXIKZWFHRTnocNuFHe08uUeqZh/eAdL6/o5tzEHvGqAZGvc03WYe8Fr0BhOuNOgc4le2YvfPOq2ZTcg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=RDR3UXk76uMP5t3yiaoEZI9uXO2OjhLL3KgV1Wfd9SaxrGn2FeQdzC4MrF30HkhkqCs3pzUQnNkQ9vpX6Qs52V9FBJzA/cuI6SIB6dN4NxwjePTB9dTBXMg3qxpmawJ6y9/MpK4GyxdjAZaHuxTHspAUUJVrEBhYpZr1tT3G07A= Received: by 10.140.249.20 with SMTP id w20mr99926rvh.1184226573136; Thu, 12 Jul 2007 00:49:33 -0700 (PDT) Received: by 10.141.210.3 with HTTP; Thu, 12 Jul 2007 00:49:28 -0700 (PDT) Message-ID: <2f7f092c0707120049u6522f55bm5dd028f327fc5537@mail.gmail.com> Date: Thu, 12 Jul 2007 16:49:28 +0900 From: "KANO, Yoshinobu" Reply-To: kano@is.s.u-tokyo.ac.jp Sender: kanoyoshinobu@gmail.com To: "Eddie Epstein" Subject: Re: how to get views list of multi-views Cc: uima-user@incubator.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3231_30688766.1184226568107" References: <2f7f092c0707111115v1eb346e1w75734915c72c9f32@mail.gmail.com> X-Google-Sender-Auth: df134c5018122564 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3231_30688766.1184226568107 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Eddie, Thank you for your reply. What I want to do is: 1. Leave Annotators as Single-Viewed 2. Assign some view to be "_InitialView" by a mapping, and pass it to the Annotator(1.) from outside of the Annotators(1.) The problem is that the number of views which I want to map to "_InitialView" is not fixed. Section 6.1.1 says that we can use an asterisk to specify various sofa names, but I got confused about the use of periods and asterisk. It seems that: a. we cannot use periods for the sofa names because periods are used for the concatinations of the mappings b. an asterisk should be used with a period c. but the user side always handles mapped sofa names, then no periods should be included?? Are there any way to achieve what I mentioned (1. and 2.)? Thanks, -Yoshinobu 2007/7/12, Eddie Epstein : > > Hi Kano-san, > > In version 2.1 one would use cas.getSofaIterator() to get an > FSIterator for all Sofas in cas, then use cas.getView(sofa) for each > Sofa. > > Version 2.2 has a new API, cas.getViewIterator(), which returns an > Iterator for all Views in the cas. > > Sofa name mapping is static. If the view(s) to be processed need to be > determined dynamically, here are two recommended approaches: > > A. create an FS in the CAS pointing at the desired View(s), and > program the annotator to access the view from the FS. > B. use a specific name prefix for the Views, and filter the Views > based on the prefix (version 2.1) or use the new > cas.getViewIterator(prefix) in version 2.2. > > Regards, > Eddie > > On 7/11/07, KANO, Yoshinobu wrote: > > Hi, > > > > Are there any way to get a list of contained views (or list of > > SofaIDs) in a multi-view CAS > > from Java codes? > > And is it possible to make sofa name mappings at runtime? > > For example, before a FlowController launch next AE, can we make and > > assign a new name mapping to that AE? > > > > I read through the document but could not find any information. > > > > Thank you, > > > > -Yoshinobu > > -- > > Yoshinobu KANO > > kano@is.s.u-tokyo.ac.jp > > Tsujii Laboratory, the University of Tokyo > > http://www-tsujii.is.s.u-tokyo.ac.jp/ > > > -- Yoshinobu KANO kano@is.s.u-tokyo.ac.jp Tsujii Laboratory, the University of Tokyo http://www-tsujii.is.s.u-tokyo.ac.jp/ ------=_Part_3231_30688766.1184226568107--