taresco/KarantaOCR-Bench
KarantaOCR - Bench KarantaOCR-Bench is a unit-test–style evaluation dataset, similar to olmOCR-bench. It consists of 70 PDF documents and 300 test cases spanning multiple document types. All the tests were manually verified by us. KarantaOCR-Bench is designed specifically to evaluate document text extraction for Documents with diacritics and special characters, covering a diverse range of document formats and languages commonly under-represented in existing OCR benchmarks.… See the full description on the dataset page: https://huggingface.co/datasets/taresco/KarantaOCR-Bench.
KarantaOCR - Bench
<div align="left"> <img src="https://cdn-uploads.huggingface.co/production/uploads/604b97e27032db3f5e8d6e8e/0IwaKLOehSDEFF3zYY_Wp.png" alt="Karanta OCR Logo" width="100"/> </div>
KarantaOCR-Bench is a unit-test–style evaluation dataset, similar to olmOCR-bench. It consists of 70 PDF documents and 300 test cases spanning multiple document types. All the tests were manually verified by us. KarantaOCR-Bench is designed specifically to evaluate document text extraction for Documents with diacritics and special characters, covering a diverse range of document formats and languages commonly under-represented in existing OCR benchmarks.
Data Schema
Below is a schema of each test case and what it means:
pdf [str]: This is the name of the pdf file in thepdfdirectorypage [str]: This is the page of the document for this test caseid [str]: Unique ID for this test casetype [str]: This is the test type; a description of each test type can be found in the next sectionmax_diffs [int]: This is the maximum allowable difference in the OCR outputs and test case for it to passtext [str]: This is the text span that we search for in the OCR outputt.case_sensitive [bool]: This indicates whether the test case is case sensitive or notchecked [str]: This indicates whether or not we have verified this test case manuallyurl [str]: The original file name of the documentbefore [str]: This only applies to text-order tests and this is the text span that should exist beforeafter [str]:This only applies to text-order tests and this is the text span that should exist after
Test Case Types
KarantaOCR-Bench is designed to augment OlmoOCR test with an additional test category for Diacritics and Special Chars:
- Presence: Presence tests check whether a provided span of text exists in the OCR output. Matches are evaluated with a tolerance defined by the
max_diffsfield, allowing for limited character-level differences.
Results
How to Run the Benchmark on your Model
We are working on a comprehensive guide on how to evaluate your models on this benchmark.
Coming Soon...
Citation Information
Coming soon ...
