Need to turn those cryptic brat .ann files into something you can actually read or feed into another program? The brat Translator has you covered. Paste your source text along with its annotation lines, and get back a single string where every entity is clearly marked with XML-style tags—perfect for eyeballing or exporting.
How It Works
- Drop in the raw text and its
.ann lines.
- The translator matches every offset to the exact characters.
- It wraps each span with an uppercase tag that mirrors the brat entity type.
- Out comes a seamless, fully tagged sentence stream—no extra symbols, no line breaks, no commentary.
Usage Example
Input
(Text)
John Smith works at OpenAI in San Francisco.
(Annotations)
T1 PERSON 0 10 John Smith
T2 ORG 20 26 OpenAI
T3 LOC 30 43 San Francisco
Output
John Smith works at OpenAI in San Francisco.
When to Use
- Prepping data for model fine-tuning that expects inline tags.
- Quickly sanity-checking brat annotations without opening the brat editor.
- Converting legacy annotation projects into a single-file format for sharing.
Just paste, convert, and carry on with your NLP workflow—no more offset wrangling!