uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eddie Epstein" <eaepst...@gmail.com>
Subject Re: how to get views list of multi-views
Date Wed, 11 Jul 2007 21:08:17 GMT
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

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.


On 7/11/07, KANO, Yoshinobu <kano@is.s.u-tokyo.ac.jp> 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/

View raw message