typesystem = load_typesystem(ts)
cas = load_cas_from_xmi(xmi, typesystem=typesystem)
xmi = cas.to_xmi(pretty_print=True)
Now both the Sofa and the feature structure have xmi id 1. This can create errors when trying to deserialize using UIMA or when trying to resolve references.
Expected behavior
Deserialization and Serialization should not affect any id.
Please complete the following information:
Version: 0.2.10.dev0
OS: OS X
Additional context
I'm building an application that requires sending serialized CAS between a Python client and UIMA server. I noticed that sometimes my python client was sending invalid XMI even if the client wasn't tasked to do anything but deserialize and serialize.
Describe the bug Running Deserialization & Serialization on some XMI documents creates multiple elements with the same xmi id.
To Reproduce Steps to reproduce the behavior:
Example Files
Expected behavior Deserialization and Serialization should not affect any id.
Please complete the following information:
Additional context I'm building an application that requires sending serialized CAS between a Python client and UIMA server. I noticed that sometimes my python client was sending invalid XMI even if the client wasn't tasked to do anything but deserialize and serialize.