averbis / averbis-python-api

Conveniently access the REST API of Averbis products using Python
Apache License 2.0
12 stars 4 forks source link

Support for annotation_types in create_process #147

Closed DavidHuebner closed 7 months ago

DavidHuebner commented 7 months ago

Is your feature request related to a problem? Please describe. The latest Health Discovery (version 7.1) has a new feature that allows the user to configure for each process which annotations should be saved. This is useful, for instance, to save internal Annotations from the internal Averbis TypeSystem or to reduce the amount of required disk space.

Describe the solution you'd like Add a new optional String parameter named annotation_types to the DocumentCollection.create_process method that uses annotationTypesToBeSaved from the createProcessDto (see screenshot) to configure the types that should be saved. The new parameter is similar to the one annotationTypes in Pipeline.analyse_text and takes a comma separated list of annotation type class names as specified in the type system. Wildcards are supported.

image

Describe alternatives you've considered None

Additional context Available only in Health Discovery 7.1 and newer.