dkpro-core
dkpro-core copied to clipboard
Support brat annotation format (deferred enhancements)
This is a follow up to #709 for new features that are implemented after 1.9.0.
It would be nice to support the format of the brat annotation tool. brat could be used to inspect output produced from a DKPro Core / UIMA pipeline. Also, for use-cases such as WebAnno, import of data from brat would be a nice thing.
It would be nice to support the format of the brat annotation tool. brat could be used to inspect output produced from a DKPro Core / UIMA pipeline. Also, for use-cases such as WebAnno, import of data from brat would be a nice thing.
Meta data
- (deferred) encode/write document meta data in ann file
- (deferred) decode/read document meta data in ann file
- (deferred) generate values in brat configuration files based on TagSetDescription if available
Type Mapping
- [x] (1.8.0) type name mapping from brat to UIMA (read)
- [x] (1.8.0) type name mapping from UIMA to brat (writing)
- [X] (1.8.0) designating a subcategorization feature in the UIMA structure to be filled with the brat type name
- (deferred) support for DKPro elevated types / UIMA sub-type hierarchies
- (deferred) support for brat "is-a" hierarchies
- there is limited support for that now. BratWriter tries to indent in annotation.conf according to type hierarchy
Spans (BratTextAnnotation)
- [x] (1.8.0) read span/entity annotations
- [x] (1.8.0) write span/entity annotations
- [X] (1.8.0) primitive attributes on spans
- (deferred) ~~feature attributes on spans~~ (not supported by brat for simple spans, this is actually events)
Relations (BratRelationAnnotation)
- [x] (1.8.0) read relation annotations
- [X] (1.8.0) write relation annotations
- [X] (1.8.0) primitive attributes on relations
- [X] (1.8.0) feature attributes on relations (optional, not supported by brat web app)
Events (BratEventAnnotation)
- [x] (1.8.0) read event annotations
- [x] (1.8.0) write event annotations
- [x] (1.8.0) primitive attributes on events
- [x] (1.8.0) feature attributes on events
brat configuration files
- [x] (1.8.0) generation of
annotation.conf - [x] (1.8.0) generation of
visual.conf - [x] (1.8.0) different colors per annotation type