Repository navigation
fix(auto-local): skip the quality gate for a winner outside the Latin script - #78
Merged
Merged
Conversation
… script The gate scores English dictionary coverage and GPT-2 perplexity, so a well-read Armenian page scored near zero and went to triage on every auto-local run. `batch --quality-gate` already skips the gate, with a message, for a transcript that is not in the Latin script; auto-local's own gate now applies the same guard to its winner, returns the transcript, and records the skip in `last_choice` so the manifest says `skipped` rather than `passed`. The guide no longer implies the skip already applied to auto-local. Closes #24 Co-authored-by: Yvette Mankerian <yvettekm@gmail.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Deploying tetrak with
|
| Latest commit: |
fac673a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f02eb12f.tetrak.pages.dev |
| Branch Preview URL: | https://fix-auto-local-non-latin-gat.tetrak.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #24.
auto-localapplied its English-only quality gate to every winning transcript, so a well-read Armenian page scored near zero and was triaged on every run, whilebatch --quality-gatealready skipped the gate for a transcript outside the Latin script.auto_local.ocr_imagenow runs the samescores_english_textguard on its winner. A non-Latin winner is returned with the gate skipped and a message on stderr, exactly as--quality-gatedoes; a poor Latin winner is still triaged.last_choicegains aquality_gateverdict (passedorskipped, withqualityset toNonewhen skipped, since the score means nothing there). The batch manifest reads it, so the row saysskippedinstead of claiming the gate passed.auto-local, now says both gates apply it.Tests: three new cases on
auto_local(non-Latin winner returned and recorded as skipped, poor Latin winner still raises, good Latin winner recorded as passed) and one on the manifest. Fast suite: 423 passed; ruff clean.Not changed, as the issue notes:
auto-localstill has no Armenian-aware engine in its pool, so the transcript it returns for Armenian may be poor. The gate just no longer judges it on an English score.🤖 Generated with Claude Code