Skip to content

chore(tools): score a candidate model's spans beside the released one's - #105

Merged
stephen-masters merged 1 commit into
mainfrom
chore/register-comparison-two-lists
Nov 16, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
chore/register-comparison-two-lists

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

Tooling for brief 014's Stage 3 gate (tetrak-hy-trainer#47): the full pipeline of a model that is not yet the pinned release, measured against v6 and the external engines on every register.

  • tools/dump_layout_spans.py: --wordlist is repeatable and the decoder works on the union, as the backend does with the modern and classical lists (brief 014).
  • tools/register_comparison.py: our row folds every region with the whole page as context, as the backend does since tetrak-easyocr-armenian 0.9 (feat(armenian): fold each region with the page as context #104); --ours-label names the candidate's row (default unchanged); labels for the ten brief 014 registers.
  • .gitignore: a candidate's cached spans live beside the released ones as evaluation/layout/spans-*/, all regenerable and all ignored.

The published evaluation/ocr/registers.csv is not regenerated here: v6's cached spans through the current pipeline reproduce it exactly, and the table moves to v7 with the release that pins v7's weights. The measurement itself is on the trainer issue.

7 tests pass, ruff clean. A chore, so no release.

🤖 Generated with Claude Code

Brief 014 issue tetrak-hy-trainer#47 measures v7's full pipeline against
v6 and the external engines before v7 is released, so the tools have to
take a model that is not the pinned one. dump_layout_spans.py accepts
--wordlist more than once and decodes with the union, as the backend does
since the two lists; register_comparison.py folds every region with the
page as context, as the backend does since 0.9, takes --ours-label for
the candidate's row, and labels brief 014's ten registers. Cached spans
for a candidate live beside the released ones (evaluation/layout/spans-*),
so the ignore rule covers them all.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7f0b7d6
Status: ✅  Deploy successful!
Preview URL: https://9f09fc6a.tetrak.pages.dev
Branch Preview URL: https://chore-register-comparison-tw.tetrak.pages.dev

View logs

@stephen-masters
stephen-masters merged commit 6352018 into main Nov 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant