Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export / Import Annotations to / from Brat Format #328

Closed
hterhors opened this issue Sep 1, 2016 · 6 comments
Closed

Export / Import Annotations to / from Brat Format #328

hterhors opened this issue Sep 1, 2016 · 6 comments
Labels
🆕Enhancement New feature or request ➔ INCEpTION Issue is tracked in https://github.com/inception-project/inception Requested

Comments

@hterhors
Copy link

hterhors commented Sep 1, 2016

Is there currently a way to export annotations in to the standard Brat-file format as described here http://brat.nlplab.org/standoff.html?

This would be a nice feature. Same for import documents from Brat-format.

Greetings,
Hendrik

@reckart
Copy link
Member

reckart commented Sep 1, 2016

The import/export for brat is not entirely trivial. But you can try doing a conversion outside of WebAnno. When you do that, you will notice why it is not trivial. But that said, it may still work for you.

  • Export the files as XMI
  • Build a DKPro Core pipeline that reads the XMIs and uses the BratWriter to export to brat format

If you want, I can send you an example of a brat->XMI pipeline I had set up for one user who wanted to import brat into WebAnno.

Presently, I don't have a ready XMI->brat example - but it should be easy to do because the BratWriter in DKPro Core is quite good at auto-detecting the type system and exporting it.

@hterhors
Copy link
Author

hterhors commented Sep 1, 2016

Thanks for fast response,

I think I'll try to do it on my own first. If it does not work I will ask you for an example pipeline.

Thanks

@reckart reckart added 🆕Enhancement New feature or request Requested labels Oct 11, 2016
@apiad
Copy link

apiad commented Feb 2, 2018

Is there any update on this. I currently have some files annotated in Brat I would like to import to WebAnno to do an inter-agreement check, and then continue tagging on WebAnno. I could manually re-tag inside WebAnno since it's not that much annotated yet, but it would be very nice to be able to automatically import the .ann files.

@reckart
Copy link
Member

reckart commented Feb 2, 2018

The schema specification in brat is very different from the one in WebAnno. It can often be mapped, but this is a task that needs to be done manually. As it happens, I was just looking into such a case anyway.

Here is a gist for the moment. I hope to refine this and eventually add it to some proper documentation.

https://gist.github.com/reckart/306b8ffddd30bee1f3afd0468a9ad31d

@jloveric
Copy link

Standoff is a nice format! 👍

@reckart reckart added this to the Feature backlog milestone Sep 24, 2019
@reckart reckart added the ➔ INCEpTION Issue is tracked in https://github.com/inception-project/inception label Apr 10, 2024
@reckart reckart closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2024
@reckart reckart removed this from the Feature backlog milestone Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕Enhancement New feature or request ➔ INCEpTION Issue is tracked in https://github.com/inception-project/inception Requested
Projects
None yet
Development

No branches or pull requests

4 participants