Thanks, Richard. So by configuring the same type system, what do you
mean? On the serialization side I can see you can instantiate it with a
type system, but in the deserializer case, how do you specify a type
system for it to work from? In your example, I see you are writing the
type system out to a file, but I'm not sure how that's used when
deserializing. Thanks.
Joel Dubbels
Watson Solution Development
Healthcare and Life Sciences Solution Development
Phone: 507-253-1165
Internet:dubbels@us.ibm.com
From:
Richard Eckart de Castilho <eckartde@tk.informatik.tu-darmstadt.de>
To:
"user@uima.apache.org" <user@uima.apache.org>
Date:
06/15/2011 03:17 PM
Subject:
Re: XmiCasSerialization, XmiCasDeserialization and
XmiSerializationSharedData
Hi Joel,
Am 15.06.2011 um 22:07 schrieb Joel Dubbels:
> I want exactly the same CAS as what I serialized out..
do you make sure that you have the same type system configured when you
de-serialize the CAS as when you serialize the CAS?
For an example on how to do this you may find these classes helpful:
http://code.google.com/p/dkpro-core-asl/source/browse/de.tudarmstadt.ukp.dkpro.core-asl/trunk/de.tudarmstadt.ukp.dkpro.core.io.xmi/src/main/java/de/tudarmstadt/ukp/dkpro/core/io/xmi/XmiReader.java
http://code.google.com/p/dkpro-core-asl/source/browse/de.tudarmstadt.ukp.dkpro.core-asl/trunk/de.tudarmstadt.ukp.dkpro.core.io.xmi/src/main/java/de/tudarmstadt/ukp/dkpro/core/io/xmi/XmiWriter.java
Cheers,
Richard
--
-------------------------------------------------------------------
Richard Eckart de Castilho
Technical Lead
Ubiquitous Knowledge Processing Lab
FB 20 Computer Science Department
Technische Universität Darmstadt
Hochschulstr. 10, D-64289 Darmstadt, Germany
phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117
eckartde@tk.informatik.tu-darmstadt.de
www.ukp.tu-darmstadt.de
Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de
-------------------------------------------------------------------
|