dkpro / dkpro-cassis

UIMA CAS processing library written in Python
https://pypi.org/project/dkpro-cassis/
Apache License 2.0
85 stars 22 forks source link

Feature Structures in non-default views are not serialized to XMI #102

Closed reneverheij closed 4 years ago

reneverheij commented 4 years ago

Describe the bug While deserializing an XMI document produced by cassis, I get the following exception:

XCASParsingException: Error parsing XMI-CAS from source "<unknown"> at line 2, column 187427: xmi id 609 is referenced but not defined."

This exception is raised by an application that uses Apache UIMA version 2.10.0. The XMI contains a reference to XMI ID 609 in the members attribute of the cas:View element. There is no element in the XMI with this xmi:id. <cas:View sofa="608" members="609"/> doc7.zip

To Reproduce Steps to reproduce the behavior:

  1. Import cas_in7.xml using load_cas_from_xmi()
  2. Export the cas using to_xmi()

I have attached my input file as well as the output from to_xmi().

Please complete the following information:

jcklie commented 4 years ago

There are two DocumentAnnotation (one for each view), I thought there can be only one globally.

reckart commented 4 years ago

There can be one per view.

reckart commented 4 years ago

There could I think even be more than per view but only one has special meaning and having more than one per view is most likely a bug.

jcklie commented 4 years ago

After some investigation, I think it is a different error.

jcklie commented 4 years ago

@reneverheij I merged a fix in master, it would be nice if you could test it.

reneverheij commented 4 years ago

I can confirm that the error no longer occurs. When can I expect a release? Thank you very much for your support.

jcklie commented 4 years ago

I just released 0.2.7. I hope that cassis is now usable for you.