> On 4. Dec 2019, at 15:50, Alain Désilets <
alainde...@gmail.com> wrote:
>
> I was wondering if there is an alternative format for which there is better read/write support in DKPro.
None that brat would support I guess.
Brat doesn't have any pre-defined annotation schema. So whenever you transfer data between brat and something else which needs to know what data is in there (e.g. what is a named entity and so on), you'll need to perform some kind of project-specific mapping. The BratReader aims to offer a flexible mapping scheme, but as you said, it is not perfect.
You could implement your own reader for your specific flavor of brat, your project-specific type system and which knows supports your project-specific quirks. Writing a reader for brat in general is not difficult. You can probably just re-use the basic data objects from the DKPro Core Reader which can be used to parse the brat files. What's tricky is the mapping.
Cheers,
-- Richard