Hi Guys,

I am an Israeli Master's Student, and have been happily working with UIMA
for the past two years.
I hope this is the right place for my question -

I have a Document object I created, which has a JCas member with
annotations over a document.
I also have a Sentence object, with a member referencing its Sentence
Annotation in the corresponding JCas. Each Document object references all
of its Sentence objects.
I would like to dump each Document object as a file on disk, using the
default Java serialization. Later they would also be deserialized back into
the Java objects. I understand I would need some special treatment for the
JCases and the Sentence Annotations as they are not serializable (now I get
NotSerializableException). Hopefully the treatment could be as minimal as
possible.

How do you suggest to do this, regarding serialization of JCas and
combining it with Java serialization?

I am working on Windows, with Java 1.6 and UIMA 2.4.0. I am using the same
type system and the same 3 views for all JCases and annotations.

Thank you,
Ofer Bronstein

Reply via email to