You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Jakob Sahlström <ja...@gmail.com> on 2014/12/03 15:04:44 UTC
Serializing Specific View to XMI
Hi,
I'm dealing with a CAS with multiple views, namely a Gold View and a System
View. I've been using XmiCasSerializer to save CASes but now I would like
to save only the contents in the System View. The XmiCasSerializer seems to
save the whole CAS with all views. Is there an easy way of just saving a
single view to an xmi file?
Best,
Jakob
Re: Serializing Specific View to XMI
Posted by Jakob Sahlström <ja...@gmail.com>.
Thanks for the tips Armin and Eddie! Will give it a try!
Jakob
2014-12-03 22:35 GMT+01:00 Eddie Epstein <ea...@gmail.com>:
> I think that is not supported directly. One could use the CasCopier to copy
> the view(s) of interest to a new, empty CAS and serialize to xmi file from
> that.
>
> Eddie
>
> On Wed, Dec 3, 2014 at 9:04 AM, Jakob Sahlström <jakob.sahlstrom@gmail.com
> >
> wrote:
>
> > Hi,
> >
> > I'm dealing with a CAS with multiple views, namely a Gold View and a
> System
> > View. I've been using XmiCasSerializer to save CASes but now I would like
> > to save only the contents in the System View. The XmiCasSerializer seems
> to
> > save the whole CAS with all views. Is there an easy way of just saving a
> > single view to an xmi file?
> >
> > Best,
> >
> > Jakob
> >
>
--
Jakob Sahlström
070-062 38 29
jakob.sahlstrom@gmail.com
Re: Serializing Specific View to XMI
Posted by Eddie Epstein <ea...@gmail.com>.
I think that is not supported directly. One could use the CasCopier to copy
the view(s) of interest to a new, empty CAS and serialize to xmi file from
that.
Eddie
On Wed, Dec 3, 2014 at 9:04 AM, Jakob Sahlström <ja...@gmail.com>
wrote:
> Hi,
>
> I'm dealing with a CAS with multiple views, namely a Gold View and a System
> View. I've been using XmiCasSerializer to save CASes but now I would like
> to save only the contents in the System View. The XmiCasSerializer seems to
> save the whole CAS with all views. Is there an easy way of just saving a
> single view to an xmi file?
>
> Best,
>
> Jakob
>
Re: Serializing Specific View to XMI
Posted by "Dr. Armin Wegner" <ar...@googlemail.com>.
Hi Jakob!
I don't think so. 4 years ago Eddie wrote:
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.
See http://uima.markmail.org/message/htkrx4rpfagsx7tr?q=serializing+view#query:serializing%20view+page:1+mid:htkrx4rpfagsx7tr+state:results.
Or has it changed in the meantime?
Regards,
Armin
On 12/3/14, Jakob Sahlström <ja...@gmail.com> wrote:
> Hi,
>
> I'm dealing with a CAS with multiple views, namely a Gold View and a System
> View. I've been using XmiCasSerializer to save CASes but now I would like
> to save only the contents in the System View. The XmiCasSerializer seems to
> save the whole CAS with all views. Is there an easy way of just saving a
> single view to an xmi file?
>
> Best,
>
> Jakob
>