ArneBinder / pytorch-ie

PyTorch-IE: State-of-the-art Information Extraction in PyTorch
MIT License
74 stars 8 forks source link

implement `Annotation.resolve()` #409

Closed ArneBinder closed 5 months ago

ArneBinder commented 5 months ago

This adds the Annotation.resolve() interface. It is meant to get a well readable representation (similar to the string representation), but still as a structured object for easy comparison e.g. in tests. This also adds implementations to all annotation classes.

Note: This also adds all missing tests for NaryRelation (there were no tests at all for this annotation type).