pdf-strikethrough-detect benchmark assets
Files the pdf-strikethrough-detect
benchmarks read that are not kept in the code repository. benchmarks/fetch_corpus.py downloads
them and checks each against the sha256 in benchmarks/manifest.json, so a changed file fails
loudly instead of quietly moving a number.
scanned-recovery/
Azure Document Intelligence results for the pages benchmarks/scanned_recovery.py scores, which
produce the Azure DI figures in the package's "Choosing an OCR backend" table. Each file is the
analyze-result JSON (prebuilt-layout, API version 2024-11-30, with its analyzeResult
envelope) for an image-only PDF of the listed pages of a public redline document, rendered at
200 dpi. With them, the benchmark scores Azure DI's words without an Azure account.
| File | Source document | Pages (0-based) |
|---|---|---|
copyright-201-10-redline.scanned.di.json |
US Copyright Office, 37 CFR 201.10 proposed rule (redline) | 0–3 |
fdic-fair-lending-redline.scanned.di.json |
FDIC, Fair Lending laws & regulations (redlined changes) | 0–2, 23–25, 33, 34, 37, 42, 43, 53 |
gretna-udo-edits.scanned.di.json |
Gretna, LA, Unified Development Code substantive edits (redline) | 2, 3, 11, 14, 18–21 |
The source PDFs are public documents published by those bodies; benchmarks/manifest.json lists
each one's URL and sha256. To reproduce the figures:
git clone https://github.com/niles-liu/pdf-strikethrough-detect
cd pdf-strikethrough-detect
pip install -e ".[rapidocr]"
python benchmarks/fetch_corpus.py
cd benchmarks && python scanned_recovery.py
License
CC0 1.0, to the extent the uploader holds any rights. The files are machine OCR of the source documents: the Copyright Office and FDIC documents are US federal government works, not subject to US copyright (17 U.S.C. §105); the Gretna document is a City of Gretna, Louisiana public document whose text stays under its publisher's terms.
- Downloads last month
- 117