dkpro-cassis icon indicating copy to clipboard operation
dkpro-cassis copied to clipboard

Convenience for setting the document language

Open reckart opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. In order to set the document language, I have to search and retrieve the document annotation from the CAS and then set the language feature. If there is no document annotation yet, I have to create one.

Describe the solution you'd like In the UIMA Java SDK, there is a convenience method for setting the document language which automatically creates a document annotation if there is none yet. Would be nice if cassis also had that.

cas.document_language = "en"  # following the `CAS.setDocumentLanguage(...)` from the Java SDK - or -
cas.language = "en"           # following the feature name

reckart avatar Mar 14 '22 08:03 reckart