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

Add get_covered_text method to Annotations #73

Closed jcklie closed 5 years ago

jcklie commented 5 years ago

Is your feature request related to a problem? Please describe. Right now, in order to get the covered text, one has to call cas.get_covered_text(annotation). That is not nice and different from Java.

Describe the solution you'd like Use annotation.get_covered_text()

Additional context If the annotation is a feature structure, i.e. does not cover text, an exception should be thrown.