uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gary underwood <underwoodg...@bellsouth.net>
Subject Deserialization of Annotation containing Map
Date Thu, 09 Apr 2020 20:01:07 GMT
Hello all,
I have made a subclass of Annotation that contains a user defined Map object of String to
Boolean. The class implements UimaSerializable.

It overrides _save_to_cas_data() which is called by XmiCasSerializer.serialize. It follows
documentation from user guides for storing the keys and values of the Map as StringArray and
BooleanArray respectively.  Stepping through the code it does run and the resulting xml file
has the proper data in it from the map.

It also overrides _init_from_cas_data(). However, stepping through the code when usingXmiCasSerializer.deserialize,
the method is never called and deserialization doesn’t work.

I do not know why _init_from_cas_data() is not called or how to make it get called during
deserialization.

Thanks,
Gary
Clinacuity, Inc.
Mime
View raw message