Questions tagged [brat]

Describes usage of brat, a rapid annotation tool for documents.

(Taken from the brat website)

brat is a web-based tool for text annotation; that is, for adding notes to existing text documents.

brat is designed in particular for structured annotation, where the notes are not freeform text but have a fixed form that can be automatically processed and interpreted by a computer.

35 questions
8
votes
2 answers

How to install the brat annotation tool on a Linux machine with SELinux enabled

This is a self-answered question that describes how to resolve problems that occur when installing the brat annotation tool, which is used to create annotated corpora for use in NLP, on an ordinary Linux machine that has SELinux enabled. This is…
jogojapan
  • 68,383
  • 11
  • 101
  • 131
4
votes
2 answers

how can I read ann file provided by brat annotation toll and convert them to dataframe in python?

I am working on the sequence tagging classification based IOB scheme, firstly, I want to kind of read my corpus and their labels, but the corpus has been saved in kind of format called .ann file that I have never worked as you here. it annotated…
Moha
  • 85
  • 1
  • 9
3
votes
1 answer

Converting from XML annotations to BRAT format

I have an annotated data set in XML format: see example below Treatment of Erosive Esophagitis in patients where the tagged words are in XML tags as shown. I need to get it into BRAT format, such as: T1 …
max
  • 4,141
  • 5
  • 26
  • 55
3
votes
0 answers

Create HTML visualization from Brat format

I have a set of files <*.txt, *.ann> in brat format. Example: file.txt Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi varius sapien ut vestibulum ornare. Donec volutpat ipsum dolor, eu feugiat ligula hendrerit vel. Example:…
kitz
  • 879
  • 2
  • 9
  • 24
3
votes
1 answer

Calculating Inter Annotator Agreement with brat annotated files

With three annotators we have been using brat (http://brat.nlplab.org/) to annotate a sample of texts for three categories: PERS, ORG, GPE. I want to calculate Inter Annotator Agreement for that sample. However, I do not seem to find a simple way to…
3
votes
2 answers

Sample size for Named Entity Recognition gold standard corpus

I have a corpus of 170 Dutch literary novels on which I will apply Named Entity Recognition. For an evaluation of existing NER taggers for Dutch I want to manually annotate Named Entities in a random sample of this corpus – I use brat for this…
3
votes
2 answers

How to get a tree visualization for google nl api?

How can you develop a tree for the syntax analysis in google nl api. Like stanford corenlp uses brat annotation tool to generate the tree. Can we use something like that to generate a dependency parse tree for the json response for google nl api, if…
3
votes
1 answer

Creating and training a model for OpenNlp using BRAT?

I may need to create a custom training set for OpenNLP, and this will require me to manually annotate a lot of entries. To make things easier, a GUI solution may be the best idea (manually writing annotation tags it's not cool), and I've just…
StepTNT
  • 3,867
  • 7
  • 41
  • 82
3
votes
0 answers

A syntactic annotation tool used to create treebanks

Can you recommend a good syntactic annotation tool? I want to create a small (phrase structure) treebank. I know there are some tools used for dependency treebanks, brat being one of them. Stanford Parser comes with parse tree viewer, but you cannot…
turdus-merula
  • 8,546
  • 8
  • 38
  • 50
2
votes
1 answer

Is there a way to prevent annotators from annotating parts of words? In our project whole words should be annotated otherwise IAA gets lower

We are working on an annotation project where annotators should annotate based on words not characters. However, sometimes such mistakes occur. How can restrict annotation so that individual I could not find a way to do this in Brat.
user146985
  • 21
  • 2
2
votes
0 answers

How can I use NER Model from Simple Transformers with phrases instead of words, and startchar_endchar (mapping to text) instead of sentence_id?

My data is in BRAT annotation format and I would like to use NER_Model from SimpleTransformers to test performance on this data with a variety of models. Is it possible to reshape my data in a way that can utilize NER_Model? Any suggestions or logic…
2
votes
1 answer

Use Annotation tool configuration / Automatic annotation service from brat

I'd like to use a personnal API for named entity recognition (NER), and use brat for visualisation. It seems brat offers an Automatic annotation tool, but documentation about its configuration is sparse. Are there available working examples of this…
FraSchelle
  • 249
  • 4
  • 10
2
votes
1 answer

How to annotate multiple tags to single word over brat annotation tool?

I want to annotate multiple entity's tags to single word. In brat's example about "the Colorado Richly Annotated Full Text Corpus (CRAFT)", a word "Collagen" is annotated by multiple tags such as "RR" and "GC CC". Now, I try to annotate multiple…
ioka
  • 21
  • 4
2
votes
1 answer

Character offset in Brat's annotation file through python

I have two UTF-8 text files: repr(file1.txt): \nSTATEMENT OF WORK\n\n\nSTATEMENT OF WORK NO. 7\nEffective Date: February 15, 2015 repr(file2.txt): RENEWAL/AMENDMENT\n\nTHIS agreement is entered as of July 25, 2014. b Their respective Brat…
GuSuku
  • 1,371
  • 1
  • 14
  • 30
2
votes
1 answer

How to convert annotation ann file to xml?

I have a data annotated using brat .I want to convert .ann file to .xml to ease computation Are there any tools? Thanks
Nada Ghanem
  • 451
  • 6
  • 16
1
2 3