A simple GUI tool for text selection and annotation. Input text, select portions with click+drag, export to JSONL.
python3 text_annotator.py- Load text and make selections by clicking and dragging
- Each selection gets a different color highlight
- Click highlighted text to remove selection
- No overlapping selections allowed
- Export to JSONL format
- Load Text: Load input text
- New Text: Save current work and start fresh
- Export JSONL: Save all entries to file
{
"text": "The original text",
"selections": [
{"start": 4, "end": 9, "text": "selected"},
{"start": 15, "end": 20, "text": "words"}
]
}- Python 3.8+
- tkinter (usually included)