Text Annotator
A versatile utility toolkit for recording, categorizing, and managing annotation data from the command line. Each command logs timestamped entries to its own dedicated log file, with built-in statistics, search, export, and health-check capabilities.
Why Text Annotator?
- Works entirely offline — your data stays on your machine
- Each command type maintains its own log file for clean separation
- Built-in multi-format export (JSON, CSV, plain text)
- Full activity history with timestamped audit trail
- Search across all log files instantly
- Summary statistics with entry counts and disk usage
Commands
Core Operations
| Command |
Description |
text-annotator run <input> |
Record a run entry (no args: show recent entries) |
text-annotator check <input> |
Record a check entry (no args: show recent entries) |
text-annotator convert <input> |
Record a convert entry (no args: show recent entries) |
text-annotator analyze <input> |
Record an analyze entry (no args: show recent entries) |
text-annotator generate <input> |
Record a generate entry (no args: show recent entries) |
text-annotator preview <input> |
Record a preview entry (no args: show recent entries) |
text-annotator batch <input> |
Record a batch entry (no args: show recent entries) |
text-annotator compare <input> |
Record a compare entry (no args: show recent entries) |
text-annotator export <input> |
Record an export entry (no args: show recent entries) |
text-annotator config <input> |
Record a config entry (no args: show recent entries) |
text-annotator status <input> |
Record a status entry (no args: show recent entries) |
text-annotator report <input> |
Record a report entry (no args: show recent entries) |
Utility Commands
| Command |
Description |
text-annotator stats |
Show summary statistics (entry counts per type, total, disk usage) |
text-annotator export <fmt> |
Export all data in json, csv, or txt format |
text-annotator search <term> |
Search across all log files (case-insensitive) |
text-annotator recent |
Show the 20 most recent activity log entries |
text-annotator status |
Health check (version, entries, disk, last activity) |
text-annotator help |
Display all available commands |
text-annotator version |
Print version string |
Each core command works in two modes:
- With arguments: Saves a timestamped entry to
<command>.log and logs to history.log
- Without arguments: Displays the 20 most recent entries from that command's log
Data Storage
All data is stored locally in ~/.local/share/text-annotator/ (override with TEXT_ANNOTATOR_DIR). The directory contains:
run.log, check.log, convert.log, etc. — One log file per command type, storing YYYY-MM-DD HH:MM|input entries
history.log — Unified activity log with timestamped records of every command executed
export.json / export.csv / export.txt — Generated export files
Requirements
- Bash 4.0+ with
set -euo pipefail strict mode
- Standard Unix utilities:
grep, cat, tail, wc, du, date, sed
- No external dependencies or network access required
When to Use
- Annotating text samples — Use
text-annotator run "sample: positive sentiment" to log annotation decisions with timestamps
- Batch processing annotations — Record bulk operations with
text-annotator batch "processed 500 samples from dataset-v3"
- Comparing annotation results — Track comparison notes with
text-annotator compare "model-A vs model-B: 94% agreement"
- Generating annotation reports — Use
text-annotator report to log report milestones, then text-annotator stats for summary data
- Exporting labeled data — Run
text-annotator export json to export all logged entries across all command types in structured JSON
Examples
# Record annotation activities
text-annotator run "labeled 50 sentences for NER"
text-annotator analyze "sentiment distribution: 60% pos, 25% neg, 15% neutral"
text-annotator check "inter-annotator agreement: 0.87 kappa"
# Batch processing log
text-annotator batch "imported dataset-v2: 10,000 samples"
text-annotator convert "exported NER tags to CoNLL format"
# Search and review
text-annotator search "sentiment"
text-annotator recent
# Export all data
text-annotator export json
text-annotator export csv
# View statistics and health
text-annotator stats
text-annotator status
Configuration
Set the TEXT_ANNOTATOR_DIR environment variable to change the data directory:
export TEXT_ANNOTATOR_DIR="$HOME/my-annotations"
Default location: ~/.local/share/text-annotator/
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
1---
2version: "1.0.0"
3name: doccano
4description: "Open source annotation tool for machine learning practitioners. text-annotator, python, annotation-tool, data-labeling, dataset, datasets."
5metadata:
6 source: https://skillmd.com/skills/bytesagain/doccano
7---
8
9# Text Annotator
10
11A versatile utility toolkit for recording, categorizing, and managing annotation data from the command line. Each command logs timestamped entries to its own dedicated log file, with built-in statistics, search, export, and health-check capabilities.
12
13## Why Text Annotator?
14
15- Works entirely offline — your data stays on your machine
16- Each command type maintains its own log file for clean separation
17- Built-in multi-format export (JSON, CSV, plain text)
18- Full activity history with timestamped audit trail
19- Search across all log files instantly
20- Summary statistics with entry counts and disk usage
21
22## Commands
23
24### Core Operations
25
26| Command | Description |
27|---------|-------------|
28| `text-annotator run <input>` | Record a run entry (no args: show recent entries) |
29| `text-annotator check <input>` | Record a check entry (no args: show recent entries) |
30| `text-annotator convert <input>` | Record a convert entry (no args: show recent entries) |
31| `text-annotator analyze <input>` | Record an analyze entry (no args: show recent entries) |
32| `text-annotator generate <input>` | Record a generate entry (no args: show recent entries) |
33| `text-annotator preview <input>` | Record a preview entry (no args: show recent entries) |
34| `text-annotator batch <input>` | Record a batch entry (no args: show recent entries) |
35| `text-annotator compare <input>` | Record a compare entry (no args: show recent entries) |
36| `text-annotator export <input>` | Record an export entry (no args: show recent entries) |
37| `text-annotator config <input>` | Record a config entry (no args: show recent entries) |
38| `text-annotator status <input>` | Record a status entry (no args: show recent entries) |
39| `text-annotator report <input>` | Record a report entry (no args: show recent entries) |
40
41### Utility Commands
42
43| Command | Description |
44|---------|-------------|
45| `text-annotator stats` | Show summary statistics (entry counts per type, total, disk usage) |
46| `text-annotator export <fmt>` | Export all data in json, csv, or txt format |
47| `text-annotator search <term>` | Search across all log files (case-insensitive) |
48| `text-annotator recent` | Show the 20 most recent activity log entries |
49| `text-annotator status` | Health check (version, entries, disk, last activity) |
50| `text-annotator help` | Display all available commands |
51| `text-annotator version` | Print version string |
52
53Each core command works in two modes:
54- **With arguments**: Saves a timestamped entry to `<command>.log` and logs to `history.log`
55- **Without arguments**: Displays the 20 most recent entries from that command's log
56
57## Data Storage
58
59All data is stored locally in `~/.local/share/text-annotator/` (override with `TEXT_ANNOTATOR_DIR`). The directory contains:
60
61- **`run.log`**, **`check.log`**, **`convert.log`**, etc. — One log file per command type, storing `YYYY-MM-DD HH:MM|input` entries
62- **`history.log`** — Unified activity log with timestamped records of every command executed
63- **`export.json`** / **`export.csv`** / **`export.txt`** — Generated export files
64
65## Requirements
66
67- **Bash** 4.0+ with `set -euo pipefail` strict mode
68- Standard Unix utilities: `grep`, `cat`, `tail`, `wc`, `du`, `date`, `sed`
69- No external dependencies or network access required
70
71## When to Use
72
731. **Annotating text samples** — Use `text-annotator run "sample: positive sentiment"` to log annotation decisions with timestamps
742. **Batch processing annotations** — Record bulk operations with `text-annotator batch "processed 500 samples from dataset-v3"`
753. **Comparing annotation results** — Track comparison notes with `text-annotator compare "model-A vs model-B: 94% agreement"`
764. **Generating annotation reports** — Use `text-annotator report` to log report milestones, then `text-annotator stats` for summary data
775. **Exporting labeled data** — Run `text-annotator export json` to export all logged entries across all command types in structured JSON
78
79## Examples
80
81```bash
82# Record annotation activities
83text-annotator run "labeled 50 sentences for NER"
84text-annotator analyze "sentiment distribution: 60% pos, 25% neg, 15% neutral"
85text-annotator check "inter-annotator agreement: 0.87 kappa"
86
87# Batch processing log
88text-annotator batch "imported dataset-v2: 10,000 samples"
89text-annotator convert "exported NER tags to CoNLL format"
90
91# Search and review
92text-annotator search "sentiment"
93text-annotator recent
94
95# Export all data
96text-annotator export json
97text-annotator export csv
98
99# View statistics and health
100text-annotator stats
101text-annotator status
102```
103
104## Configuration
105
106Set the `TEXT_ANNOTATOR_DIR` environment variable to change the data directory:
107
108```bash
109export TEXT_ANNOTATOR_DIR="$HOME/my-annotations"
110```
111
112Default location: `~/.local/share/text-annotator/`
113
114---
115Powered by BytesAgain | bytesagain.com | hello@bytesagain.com