Skip to content

kaidaniel/index_annotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Annotator

A simple GUI tool for text selection and annotation. Input text, select portions with click+drag, export to JSONL.

Usage

python3 text_annotator.py

Features

  • 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

Controls

  • Load Text: Load input text
  • New Text: Save current work and start fresh
  • Export JSONL: Save all entries to file

Output Format

{
  "text": "The original text",
  "selections": [
    {"start": 4, "end": 9, "text": "selected"},
    {"start": 15, "end": 20, "text": "words"}
  ]
}

Requirements

  • Python 3.8+
  • tkinter (usually included)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages