Add a local searchable-PDF orientation reader, a stale OCR example, and verified results on 343 USGS and 553 Bengali archive pages
88248d0 verified |
Download text-layer/study/PROTOCOL.md from foliokestrel/folio-orient: direct link, hf CLI and curl.
- Browser
- Download file 3.05 kB
-
https://huggingface.co/foliokestrel/folio-orient/resolve/main/text-layer/study/PROTOCOL.md
- Command line
-
hf download hf://foliokestrel/folio-orient/text-layer/study/PROTOCOL.md
-
curl -L -o PROTOCOL.md https://huggingface.co/foliokestrel/folio-orient/resolve/main/text-layer/study/PROTOCOL.md
3.05 kB
| # Prospective test on complete USGS Water-Supply Papers | |
| The Bengali geometry case study was selected after finding a sideways table. Test the frozen thumbnail ranking on four previously uninspected publications from a different institution and language. Before opening PDF pages or scores, hash this plan. Use Water-Supply Papers 1–80, in ascending SHA-256 order of the UTF-8 string folio-usgs-case-v1|N, with N in unpadded decimal. Request https://pubs.usgs.gov/wsp/NNNN/report.pdf where NNNN has four digits. Keep the first four distinct readable PDFs with 30–140 pages inclusive and at most 45 MiB. Record file revisions and all skipped candidates. Stop after three successive service failures so a temporary outage cannot silently select a different sample. Do not choose on contents, presence of searchable OCR, native rotation or model scores. | |
| Label every page. For each physical page, present only a random ID and an independently hash-determined uniform quarter-turn. No file name, extraction, key, source angle, geometric priority or model outputs are visible to the reviewer until all labels are locked. Use dominant main text, including the interior of a full-page table or labeled map, ahead of running headers. Where prose and other primary matter conflict without a clear majority mark mixed. If the page has no defensible main direction, mark uncertain. Photographs with an evident natural up or central captions can be judged; record the reason. Keep separate content classes prose, table, map, figure, photo, frontmatter, blank, other. Digest the locked TSV before unmasking. Outcomes describe reader orientation in this edition regardless of how the archive chose to bind or display its pages. | |
| Rank each book separately by the unmodified thumbnail tool from the Bengali study. At K=5,10,20, report number of known turns found, total reviewed, available turns (including ineligible), precision/recall and the uniform random expectation for that book. Also show all excluded pages and the incremental manual workload to inspect them, plus native orientation actions of Tesseract OSD with its fixed confidence cutoff 15. Count errors on upright and true turns separately from uncertain actions. Check whether an existing searchable PDF text layer gives a useful shortcut. For every character with an alphanumeric Unicode value and a usable angle, use its baseline direction in PDF coordinates, subtract the existing clockwise page rotation, round to a quarter-turn and count votes within 15 degrees of it. Require 24 valid votes and at least 80% agreement before accepting. Compare with leave-as-displayed and report coverage, conflicts and incorrect confident actions. Verify angle conventions independently with an explicit rotated text and page-rotation fixture before using the text-layer method. No text-layer training, threshold changes or tuning from the audit. Preserve non-results. No document images need redistribution. Credit USGS and give direct revision/source links, code, judgments and exact per-page evidence. | |