averbis / averbis-python-api

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

Add further attributes to EvaluationConfiguration and option to set them via kwargs #143

Closed DavidHuebner closed 1 year ago

DavidHuebner commented 1 year ago

Is your feature request related to a problem? Please describe. The EvaluationConfiguration directly passes its argument as features to the AnnotationComparator. So whenever, the AnnotationComparator changes, we should, in principle add the arguments as attributes to the EvaluationConfiguration class.

Describe the solution you'd like It would be nice to have a generic arguments **kwargs, that can be used to directly set config parameter in the EvaluationConfiguration constructor.

With that it should be possible to do EvaluationConfiguration("de.averbis.types.health.Diagnosis", features_to_compare=["begin","end"], projectAnnotationsTo="de.averbis.extraction.types.Token") which automatically sets the attribute projectAnnotationsTo to "de.averbis.extraction.types.Token", although it is generic.