Re: UIMA v2 CAS deserialization in UIMA v3

2020-04-10 Thread Marshall Schor
a most lovely sentiment; you're most welcome :-)  -Marshall

On 4/8/2020 5:20 PM, Peter Klügl wrote:
> Hi,
>
>
> I currently deserialize some UIMA v2 CAS files in UIMA v3 while the
> typesystems have evolved considerably.
>
> I faced some problems, but managed to do what I wanted.
>
>
> I just wanted to thank you Marshall for the great work you did and do :-)
>
>
> Best,
>
>
> Peter
>
>
>


Deserialization of Annotation containing Map

2020-04-10 Thread gary underwood
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.