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

Cassis cannot load a type system with types inheriting from "uima.tcas.DocumentAnnotation" #142

Closed reckart closed 3 years ago

reckart commented 3 years ago

Describe the bug Cassis cannot parse the attached type system.

TS-DocumentAnnotationBug.xml.zip

Expected behavior It should just work.

Error message

Traceback (most recent call last):
  File ".../sandbox.py", line 11, in <module>
    typesystem = load_typesystem(f)
  File ".../dkpro-cassis/cassis/typesystem.py", line 701, in load_typesystem
    return deserializer.deserialize(source)
  File ".../dkpro-cassis/cassis/typesystem.py", line 795, in deserialize
    t = types[type_name]
KeyError: 'uima.tcas.DocumentAnnotation'
jcklie commented 3 years ago

Solved via #143