Repository navigation
feat(batch): write a CSV manifest of each file, as a beta - #23
Merged
Merged
Conversation
`tetrak-ocr batch --manifest [PATH]` appends a row per file to workspace/manifest.csv: file, status, backend, the engine that read it, quality and the gate's verdict, the transcript, the outputs, where the scan is now, a note, the run id, the time and the Tetrak release. It is for the spreadsheets small archives keep and for CSV imports such as Omeka S's CSV Import, and it doubles as the record of what still needs a person: triaged and failed files get rows too, with no transcript, so an import never takes a reading the gate rejected. Opt-in and marked beta, so the columns can change after the first review. A manifest with another header is refused before any scan moves. auto-local records the engine it chose in a module-level last_choice, since ocr_image returns a transcript alone. Roadmap item (CSV manifest), for brief 006's scenes 1 and 3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying tetrak with
|
| Latest commit: |
873cebd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1249e9fd.tetrak.pages.dev |
| Branch Preview URL: | https://feat-batch-manifest.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.
tetrak-ocr batch --manifest [PATH]appends one row per file toworkspace/manifest.csv. It's for the spreadsheets small archives keep their catalogues in, and for collections systems that import a CSV, such as Omeka S's CSV Import. This is the roadmap's CSV manifest item.Columns
filescans/statusprocessed,triageorerrorbackendengineauto-local, the one that wonqualityquality_gatepassed,failed,skipped(not Latin script, so not scoreable) orofftranscriptoutputsworkspace/, separated by;locationworkspace/noterunfinished_attetrak_versionDecisions worth reviewing
workspace/processed/grows. A manifest whose header differs from this version's is refused before any scan moves, so its rows can't end up misaligned.auto-localreports its chosen engine through a module-levellast_choice.ocr_imagereturns only a transcript, under the fixed backend contract, so the choice had no other way out. It's process-global, like the telemetry sink.Checked
pytest -m "not slow": 378 passed, including 19 new tests intests/ocr/test_manifest.py. They cover every status, the gate's four verdicts, auto-local's engine on success and on triage, appending, a named path, the header refusal, the run id and the CLI forwarding.ruff, plussphinx-build -W.auto-local --pdf --manifeston seven scans. The rows in the guide are from that run.Found on the way, not fixed here
auto-localsends Armenian pages to triage. Its own gate uses the English-only score, without the non-Latin skip that--quality-gatehas. In the real run, an Armenian page scored 0.0502 and was triaged. That bug predates this branch.tetrak-ocr ocr img --format pdf --output x.pdfwrites the plain-text transcript tox.pdf, and the real PDF next to the source image.--pdf PATHworks.🤖 Generated with Claude Code