Closed jcklie closed 5 months ago
with p.open("rb") as f:
ts = TypeSystem(add_document_annotation_type=True)
cassis.load_cas_from_json(f, typesystem=ts)
is sometimes required
The issue occurs when a type extends from uima.tcas.DocumentAnnotation
but does not define it, e.g.
"de.tudarmstadt.ukp.dkpro.core.api.metadata.type.DocumentMetaData" : {
"%NAME" : "de.tudarmstadt.ukp.dkpro.core.api.metadata.type.DocumentMetaData",
"%SUPER_TYPE" : "uima.tcas.DocumentAnnotation",
"documentTitle" : {
"%NAME" : "documentTitle",
"%RANGE" : "uima.cas.String"
},
Seems to be a duplicate of #280
Describe the bug
uima.tcas.DocumentAnnotation is not predefined and not added by default to the TypeSystem