dkpro / dkpro-core

Collection of software components for natural language processing (NLP) based on the Apache UIMA framework.
https://dkpro.github.io/dkpro-core
Other
196 stars 67 forks source link

Role attribute should not be mandatory for slot features #1489

Closed reckart closed 3 years ago

reckart commented 3 years ago

When reading event annotations from brat, the "role" attribute should not be mandatory on the slot fillers. Currently they are mandatory causing an exception when trying to read the following files:

document.txt

"I am hungry" said John.

document.ann

T1  Speaker 19 23   John
T2  Quote 0 13  "I am hungry"
E1  Speaker:T1 Speak:T2

It only works when adding these lines:

A2  role T1 speaker
A2  role T2 speak