You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"])
Please complete the following information:
Version: 0.6.0-SNAPSHOT
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: