Skip to content

Using brat annotation tool

bsharpataz edited this page Nov 29, 2018 · 2 revisions

Currently the brat annotation tool only displays entities and it is geared for annotating Intervention vs Concept.

Install brat

  • download (http://brat.nlplab.org/index.html)
  • setup with instructions here: http://brat.nlplab.org/installation.html
  • set a username (like becky) and a lame password (like wm, what you type is shown!)

Configure brat:

  • replace annotation.conf with:
[entities]

Intervention
Concept
Ungrounded

[relations]

[events]

[attributes]
  • replace visual.conf with:
[labels]

[drawing]

Intervention	bgColor:#ffff00
Concept	bgColor:#00ff00
Ungrounded	bgColor:#ff0000

Copy eidos output to brat folder

  • The brat annotations will live in a (sub)directory you make (inside the brat directory, brat-v1.3_Crunchy_Frog):
cd brat-v1.3_Crunchy_Frog/data
mkdir <eidos_annotations_folder>
chmod 777 <eidos_annotations_folder>

Generate the input to brat:

  • run the python script over the jsonld output of eidos: python2 ~/Downloads/jsonld_to_brat.py /path/to/jsonld_files data/<eidos_annotations_folder>/

Run the sucker!

cd brat-v1.3_Crunchy_Frog
python2 standalone.py

Go to localhost:8001 in your browser and have fun!

Clone this wiki locally