Describe the bug
It is possible to create CAS objects in the UIMA Java SDK that do contain feature structures but not any sofa. XMI representing such CAS objects cannot be loaded in cassis.
To Reproduce
public static CAS casWithFloatingPointSpecialValues() throws Exception {
CAS cas = createCas();
DoubleArrayFS doubleArrayFs = cas.createDoubleArrayFS(5);
doubleArrayFs.set(0, 0.0);
doubleArrayFs.set(1, 1.0);
doubleArrayFs.set(2, Double.NEGATIVE_INFINITY);
doubleArrayFs.set(3, Double.POSITIVE_INFINITY);
doubleArrayFs.set(4, Double.NaN);
cas.addFsToIndexes(doubleArrayFs);
return cas;
}
Expected behavior
Good question. I'd say the CAS should load and probably add the feature structures to the default view but without initializing the sofa of the view.
Error message
../cassis/xmi.py:73: in load_cas_from_xmi
return deserializer.deserialize(
../cassis/xmi.py:123: in deserialize
proto_view = self._parse_view(elem)
../cassis/xmi.py:295: in _parse_view
sofa = int(attributes["sofa"])
Describe the bug It is possible to create CAS objects in the UIMA Java SDK that do contain feature structures but not any sofa. XMI representing such CAS objects cannot be loaded in cassis.
To Reproduce
Expected behavior Good question. I'd say the CAS should load and probably add the feature structures to the default view but without initializing the sofa of the view.
Error message
Please complete the following information: