DictaRashi: A State-of-the-Art OCR Model For Rashi Script

Ometz Shmidman, Yonah Taurog, Aryeh Sanders, Shlomo Bluth, Moshe Koppel, Joshua Geudalia, Avi ShmidmanarXiv 2026

TL;DR

Standard OCR engines are great at reading modern "square" Hebrew, but they fall flat when faced with the semi-cursive "Rashi" script used in centuries of Rabbinic literature. DictaRashi is a new Tesseract-based model trained on over a million lines of text that finally cracks this code, outperforming even the most powerful frontier LLMs to achieve a character error rate of less than 1%.

What Problem Does This Paper Address?

If you’ve ever tried to run OCR on a 17th-century Rabbinic commentary, you know the frustration. Millions of pages of Jewish history and law are preserved in "Rashi" script—a semi-cursive typeface that looks just different enough from standard Hebrew to confuse general-purpose engines.

The official Tesseract Hebrew models, for instance, often mistake Rashi letters for their modern "square" look-alikes, leading to character error rates (CER) north of 30%. While some community-made models existed, there was no gold-standard benchmark to compare them, and none of them quite reached the level of precision needed for serious digital scholarship or full-text search.

Methods

The researchers didn't reinvent the wheel; they just built a much better engine for it. They used Tesseract 5.2.0 as their base, specifically performing "continuous training" on top of the standard heb model from the tessdata_best repository.

The secret sauce wasn't a radical new architecture, but rather the scale and quality of the fine-tuning. They kept the underlying LSTM (Long Short-Term Memory) network unchanged but fed it a massive, manually corrected dataset. The training ran for 500,000 iterations using the standard tesstrain pipeline, focusing on line-by-line image-to-text pairs.

Datasets

Data is the heart of this paper. The authors compiled a massive training set and a rigorous new benchmark:

  • Training Set: A staggering 1.3 million text lines (over 52 million characters) sourced from 118 different Rabbinic and post-Rabbinic books.
  • Test Set (The Benchmark): To prove their model's mettle, they created a new, publicly available benchmark consisting of 1,120 lines from 14 Rashi-script pages, hand-transcribed by domain experts.
A breakdown of the massive training dataset used to refine the model.

Key Insights and Ideas

  • Specialization Beats Generalization: In the era of "one model to rule them all," this paper shows that a specialized, smaller model (Tesseract) can still outperform massive frontier LLMs if it has enough high-quality, domain-specific data.
  • The "Square" Bias: The authors confirmed that general Hebrew models fail because they try to force-fit Rashi script into the "square" Hebrew alphabet they were originally trained on.
  • Visual Confusion is the Final Boss: Even with 99% accuracy, the remaining errors are almost entirely due to visual similarity. For example, the letters vav and yod are frequently confused because, in Rashi script, they look nearly identical to the untrained (or under-trained) eye.
The "confusion matrix" of Rashi script: the most common letter-level errors.

Key Results

DictaRashi sets a new state-of-the-art for Rashi script OCR, leaving both previous Tesseract models and modern LLMs in the dust.

  • DictaRashi Performance: Achieved a 0.86% CER and a 3.38% WER (Word Error Rate).
  • Vs. Other Tesseract Models: The next best model (Boro11204) had a 2.98% CER—meaning DictaRashi has about 3.5 times fewer errors.
  • Vs. LLMs: Even the best-performing LLM tested, Claude Fable 5.2, trailed behind with a 2.90% CER. Other heavy hitters like GPT-4 and Gemini 4 Argon weren't even close.
A comparison of DictaRashi against other Tesseract models. Note the massive jump in accuracy.
How DictaRashi stacks up against the world's most powerful Large Language Models.

Limitations and Future Work

While DictaRashi is a massive leap forward, the authors note that they are still using Tesseract’s LSTM-based architecture. They suggest that the next frontier involves moving toward transformer-based models (like TrOCR), which might be able to squeeze out even higher accuracy by better understanding the context of the semi-cursive strokes.

The model and the new benchmark test set have been released to the community under a CC BY NC 4.0 license, providing a foundation for anyone looking to digitize the vast library of Rashi-script literature.

Summary updated

BibTeX
@misc{shmidman2026dictarashi,
  author = {Ometz Shmidman and Yonah Taurog and Aryeh Sanders and Shlomo Bluth and Moshe Koppel and Joshua Geudalia and Avi Shmidman},
  title = {{DictaRashi: A State-of-the-Art OCR Model For Rashi Script}},
  year = {2026},
  eprint = {2611.29760},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29760},
}
Figure