shaypal5's picture
card: disclose synthetic training data with DEV-chosen scan settings
7b14f0e verified
|
Raw History Blame Contribute Delete
5.24 kB
metadata
license: apache-2.0
language: he
base_model: Rivok/tesseract-heb-rivok
tags:
  - ocr
  - tesseract
  - hebrew
  - literary-print

HeOCR Pointed MEASURED v1.0

This Tesseract int8 model recognizes pointed Hebrew literary print. Fine-tuned from HeOCR P-hist v1.1, which derives from Rivok Full. It was trained on line pairs from public-domain scans and Project Ben-Yehuda reading texts, with HeOCR historical-print line pairs and Rivok v2 replay. See NOTICE for source credits and licenses.

The release contains the exact measured weight file, heocr_pointed.traineddata, under Apache-2.0. Its SHA-256 is 55440680250a183c875211ae18d5b502cccfe761ef3fbd9121a1fda236418bdb.

Zenodo archive

Training-data note

Niqqud in these labels follows the Project Ben-Yehuda text; it has not been verified mark by mark against the printed scan.

Disclosed, synthetic training data: this model is a fine-tune of HeOCR old-print v1.1, whose training included synthetic old-print lines rendered with scan-simulation settings chosen by comparing image statistics with real old-print development scans. No test page or crop was in training.

Held-out evaluation: pointed Hebrew literary print (PBY-H v0.1)

Measured model: HeOCR pointed-measured v1.0, int8, MEASURED (TRAIN only), sha256:55440680250a183c875211ae18d5b502cccfe761ef3fbd9121a1fda236418bdb. It's HeOCR old-print v1.1, fine-tuned on 12,001 real pointed lines from public-domain book scans (none from this set's books), run through heocr 0.3.0a2.

  • Selection: this checkpoint (60,000 samples seen) was picked on a separate development set, under a rule registered before training.
  • Scoring: scored once on this set, and the score was independently reproduced.

Set: PBY-H v0.1, pointed stratum. It holds 24 pages from 8 public-domain pointed Hebrew works (poetry) in Project Ben-Yehuda, imaged from Internet Archive scans of two book editions.

  • Lines: 460 in total. 69 lines where the edition and PBY's text diverge are masked for every reader alike.
  • References: PBY's typed text, with niqqud and spelling as PBY typed them. It's a proofread reading text, not a diplomatic transcription.
  • Images: the model was never trained on any of these pages (exact image check over its whole training set: 0 hits).
  • Registration: the set was frozen before any reader ran on it, and this model's run was registered before it ran.

Measure: page-level character error rate (CER, lower is better) with niqqud kept, line_fold_v1 normalisation. Intervals are from a paired bootstrap over the 8 works (2,000 resamples, seed 0).

Reader CER, niqqud kept (%) CER, letters only (%) WER (%) This model's relative CER change (one-sided 97.5% upper bound)
Google Document AI OCR 9.50 9.80 40.7 +83.0% (+144.5%)
Google Cloud Vision 9.67 10.33 43.3 +79.8% (+129.0%)
HeOCR pointed-measured v1.0 17.38 16.74 36.8 β€”
HeOCR old-print v1.1 (previous) 19.12 17.00 44.4 βˆ’9.1% (βˆ’6.5%)
Rivok Tesseract Full 19.18 18.62 48.4 βˆ’9.4% (+17.7%)
HeOCR old-print v1.0 19.79 17.65 46.9 βˆ’12.2% (βˆ’9.7%)
Rivok Tesseract Lite 23.40 19.77 61.1 βˆ’25.7% (βˆ’12.0%)
Tesseract heb fast 42.12 25.00 104.8 βˆ’58.7% (βˆ’51.4%)
Tesseract heb best 45.06 25.39 105.5 βˆ’61.4% (βˆ’54.2%)
Rivok PaddleOCR 46.64 16.12 108.3 βˆ’62.7% (βˆ’54.2%)

"Letters only" removes niqqud and cantillation from both sides. Google Drive's built-in OCR was not run, because its API refused Hebrew as an OCR language.

Reading:

  • Google is far ahead. Document AI and Vision make a little over half as many errors as this model with niqqud kept (9.5% and 9.7% against 17.4%).
  • It is better than our previous model v1.1 (upper bound βˆ’6.5%), and better than v1.0, Rivok Lite, Tesseract and Rivok PaddleOCR.
  • It is statistically level with Rivok Tesseract Full.
  • The gain over v1.1 is in the niqqud. On letters only it is level with v1.1 (βˆ’1.5%, upper bound +1.0%). It recovers 80.1% of the reference's pointing marks, against 76.8% for v1.1 and about 91% for the Google readers.
  • Its word error rate is the lowest here, but it is statistically level with both Google readers on words.
  • This set isn't a pre-registered state-of-the-art category.

Caveats:

  • Two book editions: 21 of the 24 pages come from one (Katzenelson, Warsaw 1910). The work-level intervals treat its 7 works as separate clusters, so they understate how much the result could change on other pointed editions.
  • It's a fine-tune of v1.1. It is slower: median 2.2 s per page, against 1.4 s for v1.1.
  • Other Project Ben-Yehuda text is public and may appear in any reader's training data. None of this set's 8 works is in this model's fine-tuning data. Text overlap is tagged, not excluded. Only exact page images are excluded.
  • One training line shares text with a different HeOCR held-out set (pointed print). It doesn't touch this set.