inception-project / inception

INCEpTION provides a semantic annotation platform offering intelligent annotation assistance and knowledge management.
https://inception-project.github.io
Apache License 2.0
593 stars 151 forks source link

Import BRAT annotations to INCEpTION #2424

Closed xegulon closed 3 years ago

xegulon commented 3 years ago

I have BRAT annotations (.txt files and their corresponding .ann files). I would like to import them to INCEpTION.

The import functionality only takes as input .zip files. I would like it to be able to import a folder containing .txt/.ann files.

reckart commented 3 years ago

INCEpTION does not support importing files in the brat format at this time. In principle, it is possible to convert brat data to the UIMA CAS XMI format using DKPro Core and then to import the converted data - but it is not a very straigh-forward procedure. First, you'd have to set up your annotation scheme in INCEpTION, then export the UIMA type system, then build a conversion script to read the brat data and map it to the annotation scheme and then to import the data.

reckart commented 3 years ago

Here is an example of a conversion script (originally used with WebAnno, but applies for INCEpTION as well): https://gist.github.com/reckart/306b8ffddd30bee1f3afd0468a9ad31d