Skip to content
Nat Lee

Keyboard shortcuts

Turn these off if they get in the way of a screen reader or voice control. The setting is saved in this browser.

1
Home
2
Work
3
Projects
4
About
5
Experience
/
Search projects
?
Show this panel

AI/ML

Spin-off · Leopard Mobile

Reading Comprehension Labeling

Highlight the answer. Review it together.

A self-hosted Rust + React workspace for SQuAD v1/v2 datasets: mark answer spans, review agreement and optionally request model suggestions.

Role
Creator & Maintainer
Period
2019.07 – 2026.11
Status
Completed
Categories
Language & sentimentWeb apps & extensions
Origin
Leopard Mobile
Stack
  • Rust
  • axum
  • React
  • TypeScript
  • SQLite
  • Docker
Reading Comprehension Labeling, screenshot 1

Overview

A self-hosted Rust + React workspace for SQuAD v1/v2 datasets: mark answer spans, review agreement and optionally request model suggestions. Rewritten from the original Flask application in 2026, keeping annotation, review and export in one workspace.

What it's good for

For teams building extractive QA or RAG evaluation sets: answers are stored as exact character offsets, a model can draft the first pass, and disagreements show up in review rather than in the trained model's answers.

Diagrams

Main paths only. The edge cases stayed in the code.

Browsers count positions in UTF-16. Emoji had opinions about that.

Point at a box to see what it connects to.

  1. Import passages or SQuAD files(Old mrc.label files too) → Stored offset still matches?
  2. Stored offset still matches? → yes: Ask a model first? → no: Use the nearest same text
  3. Use the nearest same text(None found: skipped, with warning) → Ask a model first?
  4. Ask a model first? → yes: Model drafts questions and answers → no: Accept, edit or select answers
  5. Model drafts questions and answers(Claude or OpenAI-compatible API) → Answer copied word for word?
  6. Answer copied word for word? → yes: Accept, edit or select answers → no: Drop it and say why
  7. Drop it and say why(Paraphrases don't count)
  8. Accept, edit or select answers(Others' answers hidden until done) → Reviewer checks agreement
  9. Reviewer checks agreement(Exact match and F1) → Approved?
  10. Approved? → approved: Export the dataset → returned: Accept, edit or select answers
  11. Export the dataset(SQuAD, JSONL, RAG or chat)

Features

  • Answer-span annotation and SQuAD v1/v2 import/export
  • Multi-person review and agreement scores
  • Optional model suggestions and built-in login
  • Single-image Docker deployment

Results

  • 2026 Rust and React rewrite with import, annotation, review and export
Annotating: select a span in the passage; a small model's suggestions wait on the right
Annotating: select a span in the passage; a small model's suggestions wait on the right

What I learned

  • Small local models write shaky questions, sometimes in the wrong language or with off-topic answers, which is why every suggestion needs a human click.
  • Browsers count UTF-16 units while SQuAD and Python count characters; the old version stored browser offsets, which an emoji throws off.
  • The old front end could submit without selecting an answer, stored as 0; those rows now import as questions still waiting for one.
  • Review: answers of 2004 and 2004 年 agree at 67% F1, one character apart
    Review: answers of 2004 and 2004 年 agree at 67% F1, one character apart
  • Project overview: annotation and review progress, agreement F1, per-annotator counts
    Project overview: annotation and review progress, agreement F1, per-annotator counts
  • Optional login: admins add accounts, pick roles, reset passwords or disable them
    Optional login: admins add accounts, pick roles, reset passwords or disable them
  • Spin-off · Leopard Mobile
    Web apps & extensionsLanguage & sentiment11 stars on GitHub

    Word Net

    Read a sentence, cast a net on the sad-to-happy scale and reveal its reference score. Five modes, including daily challenges and two-player games.

    2018Completed
  • Spin-off · Leopard Mobile
    Language & sentimentWeb apps & extensions22 stars on GitHub

    Multimodal Labeling

    A Rust + React labeling platform with configurable schemas, multi-annotator agreement and optional model-assisted pre-labeling. One Docker image to self-host.

    2019Completed
  • Web apps & extensions77 stars on GitHub

    Streaming Player

    Twitch, YouTube live chat and chat bots share one song queue. A Rust backend keeps the OBS player, overlay and moderator dashboard in sync.

    2023Completed