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.
Is your feature request related to a problem? Please describe. The EvaluationConfiguration directly passes its argument as features to the
AnnotationComparator
. So whenever, theAnnotationComparator
changes, we should, in principle add the arguments as attributes to theEvaluationConfiguration
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 theEvaluationConfiguration
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 attributeprojectAnnotationsTo
to"de.averbis.extraction.types.Token"
, although it is generic.