uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Epstein <eaepst...@gmail.com>
Subject Re: Serialize only one view of a CAS
Date Wed, 20 Oct 2010 14:09:40 GMT
Hi Jörn,

The only way to do this now is to create a 2nd CAS, copy over the
parts wanted using the org.apache.uima.util.CasCopier and serialize
the new CAS.

A more direct solution is the proposal for serialization to support
"CAS projections".
A brief description is in


On Wed, Oct 20, 2010 at 6:35 AM, Jörn Kottmann <kottmann@gmail.com> wrote:
>  Hi everyone,
> is it possible to only serialize one view of a CAS ?
> In my case the "_InitialView" contains an xml document, which
> is transformed by an AE into a plain text representation, and
> placed in a view called "Article".
> The serialization code now should only write the "Article"
> view into the xmi file, and dropping the "_InitialView".
> As far as I know the "_InitialView" must always exist,
> so it would be ok to just rename the "Article" view
> to "_InitialView" in the serialzed CAS.
> I looked at the XmiCasSerializer class but could not find
> a setting which specifies which views are serialized.
> Thanks,
> Jörn

View raw message