Datasets:
image image | text string | style int32 | cer float32 |
|---|---|---|---|
ืงื ืื ืืืกืื | 432 | 0.8 | |
ืจืืื ืคืกืืืืืืื | 261 | 0.4286 | |
ืชืจืืื | 456 | 0 | |
ืกืคืจ ืจืืฉืื | 316 | 0 | |
ืืืืจืฉื | 461 | 0 | |
ืชืจื ื | 460 | 0.4 | |
ืืืคืืก ื | 222 | 0.2857 | |
ืืืืืขืจ ืืฉืืชืคื ื ืืืขืืืงื | 244 | 0.5455 | |
ืืฉืืชื ืื ืืืจืขื | 47 | 0 | |
ืืชืืช ืขื ืื ืืืืช | 373 | 0.2667 | |
ืืืืืขื ืจืื ืขื ืืืจ ืืืืจืช ืืื ืืืืช ืืืืคื ืคืืืื ืืืืกื | 122 | 0.16 | |
ืืืื | 448 | 0.25 | |
ืืขืชืื | 149 | 0 | |
ืืฉืืืข ืืฉืขืื ืืชืืช ืืช ืืฉืขื ืืฉืืื ืืช | 104 | 0.0625 | |
ื ืจืื ืืจืืง ืืฆื ืืืช ืืจืฉืช ืืืจืื ืฆืืจื ืืคืืขืืื ืืคืจ | 408 | 0.2444 | |
ื ืฉืขื ืชื ืืืืจืืขื ืขื | 96 | 0.1765 | |
ืืื ืืืืื ืืืกืชืื ืืื ืจื ืืคื ื ืืฉืืื | 35 | 0.1471 | |
ื ืืจ ืืื ืื ืืชื ืืื ื ืืื ืืืืื | 472 | 0.2414 | |
ืฆืืจื ืืืืข | 472 | 0.1111 | |
ืื ืืกืืจืืชื ืืช ืคืืืืงืืืชื ืื ืื ืืื ืืชืืืฉืืช ืขื ืืืงืจ | 424 | 0.2857 | |
ืืืืจ ืืืื ืืฉืจ ืืฆื ืื | 268 | 0.05 | |
ืืืืืืช ืืขื ืื ืื ืฉืื ืื | 458 | 0.3 | |
ืื ื ืืฉืชื ืฉื ืืช ืื ืืืืื | 374 | 0 | |
ืืช ืืขืจืืื ืืืจืืฉื ืืืฉืื ืงืจืื ืืช | 170 | 0.1724 | |
ืืื ืืงืื ืืชืืฆื ืืืื ืฉืื ืขื ืืจืื | 357 | 0.0968 | |
ืืืขื ืื ื ืืื ืืืืชื ืืืื ืืฆืื ืืืื ืืืขืจืืช | 325 | 0.1 | |
ืืคืงืื | 11 | 0 | |
ืืืชื ืฉื ืืช ืืื ืืฉืงืคืื ืืืงืืืจ ืืช ืืืืช ืขืื ื | 427 | 0.075 | |
ืืืืจื ื | 154 | 0.1667 | |
ืื ืืื ืืชืืื ืืจืืฉ ืืฉืื ืืื ืืคืขื ืืคืขื | 239 | 0 | |
ืกืืฃ ืกืืฃ ื ืฉืืจืชื ืืืืกืจ ืื ืืื ืื | 102 | 0.0667 | |
ืืืฉื ืื ืืื ืืงืืฅ ืืชื ืืืืชื ืืฉืืืช ืืงืืจืืช | 432 | 0.2895 | |
ืืื ืืืขื ืื ืืงืืืื ืืืจื ืื ืืืคืืก | 82 | 0.125 | |
ืืืืจื ืชืืื ืื ืืื ืืืื ืื ืืืื ืื ืืขืื ืืืื | 460 | 0 | |
ืืืื ื ืืฉืขืื ืืืื ืืืืชื | 291 | 0.0909 | |
ืืฉืชืืจ ืืืืฉ ืงืจืื ืืช ืืืื | 198 | 0.3636 | |
ืืืชืจ ืฉืืืจื ืืืืื ื | 171 | 0 | |
ืืืจื ืขืฉืืชื ืืืช ืฉืืชื ืืฆืืืชื ืืืจืื ื ืืจ ืืขื ืขืืคืจืช | 122 | 0.1087 | |
ืืืืขื ืืฉืขื ืืชืฉืืขืืช | 183 | 0.1111 | |
ืจืขืฉ ืืืคื ืื ืืงืืืืช ืืื ืืช ืืืืืจ ืืืืื ืื ืืื ืช ืืงืจ | 366 | 0.2553 | |
ืืืืฉืื ืืฉืจ ืืชืคืจืฆื ืืชืืื ืฉืืื ืืืืื ืืืฉืง ืฉืืื ืืจืืืื | 304 | 0.2549 | |
ืืขืจืืืืื ืืงืืื ืืช | 326 | 0.3125 | |
ืืืืช ืฉืืืชื ื ืชืืฃ ืืชืื ืจืืื ืืืชืจ ืืืื ืขืื | 447 | 0.1795 | |
ืืืงืจ ืืื ืืืขื ืืื | 84 | 0.1765 | |
ืืื ืื ื ื ืืงืง ืืืืื ืืฉืจ ืืื | 270 | 0 | |
ืื ื ื ืืจืื ืืขื ืง ืืืืื | 253 | 0.1 | |
ืืืืชื ืื ืฉื ืขื ืืชืคื ืขืืื ืืืื | 96 | 0.0357 | |
ืืืืืชื ืืืชืืื ื | 280 | 0 | |
ืงื ืขืจื ืืฉืจ ื ืคืืฉื ืืืฉืจ ื ืขืืื ืืขืื ื ืขื ืืจืื | 7 | 0.1463 | |
ืื ืืื ืื ืืืื ืืืื ื ืืื ืืฉืจ ืืื | 109 | 0.0625 | |
ืืืื ืืจืืฉื ืฉื ืืืงืจ ืืืืืจ ืฉืคื ืขืื | 97 | 0.3125 | |
ืืืฉืืชื ืืืชืขืืจืจ ืฉืื ืืจืืื ืืืชืื ืฉืืื ืฉืืจืจืชื ืืขืฆืื | 154 | 0.1875 | |
ืืื ืืชืืื ืขืื | 11 | 0.0769 | |
ืื ืืืชื ืจืง ืฉื ืืื ืงืืืื | 140 | 0.1304 | |
ืคื ื ืืืฉื ืืืืช ืขืฉื ืขืื ืจืืฉื | 58 | 0 | |
ืืืฆืืข ืฆืจืืื ืืืื ื ืจืืฉื ืืืืื ื ืงื ืืงืื ืฉืื ืื | 348 | 0.3095 | |
ืชืืฃ ืืื ืืื ื ืืชืืืื | 465 | 0.0526 | |
ืืืจืืืฉ ืืขื ื ืคืฉ | 446 | 0.0714 | |
ืืขืืจื ืืจื ืืฉืืง ืฉืชืืชื ืืื ืืืืืจืงื ืืืืื ืืืขืื ืืฉืขืื | 149 | 0.36 | |
ืืฉืจ ืขื ืืืืื ืืฉืืืข ืืช ืืฉืขื ืืขืฉืืจืืช | 4 | 0.1471 | |
ืขืืืชื ืืงืจื ืืืืช ืืืช ืืืื ืื ืฆืืจื ืืืกื ืื | 83 | 0.2 | |
ืืชืืืฆืชื ืืืืืช ืขืื ืืืงืจ ืืขืื ืืื ืืืืชืืื ืืืืฉ | 280 | 0.2273 | |
ืืช ื ืฉืืชื | 66 | 0 | |
ืืคื ื ืฆืืข ืขื ืืจืื ืืืื ืืงื ืื ืขืฉืจื ืจืืขืื | 157 | 0.0769 | |
ืืืื ืืืืช ืืื ืฆืจืืจ ืืืื ืืืชื | 153 | 0.0357 | |
ืขืื ืืื ืืืคื | 242 | 0.1667 | |
ืื ืืฉืืช ืืช ืฆืจืืจื ืื ืื ื ืกืืชื ืืืฉืืื ื | 358 | 0.1111 | |
ืืื ืืื | 376 | 0 | |
ืืืืจ ืื ืื ืืืืช | 192 | 0 | |
ืืืืื ืื ืื | 113 | 0.0909 | |
ืฉืืืื ืื ืืืืฆื ืืื | 284 | 0.3333 | |
ืงืจืื ืืช | 216 | 0.1667 | |
ืืืืจ ืืืืื ืขืืื ืืืชื ืืจื ืืืื ื ืืืจ ืื ืืืืืจ ืืื | 397 | 0.0213 | |
ืืืจืืืื ื ืืจืื | 32 | 0.1538 | |
ืืืืขืืจ ืืื ืืฉืจ ืจืืฃ ืืื ืขืื ื | 254 | 0.2222 | |
ื ืืื ืื ืื ืืื ืงืฅ ืื ืืืืื ืืื ืืื ืืืชื | 53 | 0.1316 | |
ืืขืืืชื | 423 | 0 | |
ืืงืืืื ื | 207 | 0 | |
ืขืืจืื | 255 | 0.2 | |
ืืืื ืืขืืืจ ืจืืขืื ืืืืื | 174 | 0.1364 | |
ืืืจืืืฃ ืืืจืื ืืืื | 268 | 0.0588 | |
ืื ืืขืช ืืื ืืื ืืืคื | 388 | 0 | |
ืืฉืฉืชื ืืืืกื ืืืืจ | 444 | 0.1875 | |
ืืงื ืืช ืืื ืื | 257 | 0 | |
ืืืื ืจืขืื ืืืืื ืืืื ืืื ื ืืื ื ืืืืข ืืืช ืืืกืืจื | 412 | 0.1957 | |
ืื ืืื | 148 | 0.1667 | |
ืืืื ืืชืืื ืื ืื ืื ืืื ืื ืคื ืขื ื ืืื | 246 | 0.1081 | |
ืืื ืื ืืฃ ืคืจืืื ืืืช ืืื ืขืืืื | 336 | 0.2069 | |
ืื ืืืืชื ืืืฆื ืขื ืืืื | 291 | 0 | |
ืืื ืืขื ืืืืื ืืชื | 130 | 0 | |
ืื ืืจืฉ ืืืืื | 482 | 0.0833 | |
ืืื ืคื ืจืืข ืืืืื ืื ืืกืฃ ืืืจืื ืืืืื | 72 | 0.1429 | |
ืืขืืจื ืืจื ืืฉืขืจ ืคืฉืืชื | 18 | 0.35 | |
ืืืืฉืื ืืคืขืืื ืืืช ืืืช ืืืืื | 398 | 0.2222 | |
ืืืจืชื ืฉืืื ืืืฉืืื ืืช ืืืงืืืจื ืขื ืืกืคืกื | 165 | 0 | |
ืงืจืื ื ืืืฆื ืืืจ ืืืืื | 99 | 0.3 | |
ืืื ืืืืจ ืขื ืืชื | 451 | 0.5 | |
ืืืื ืืขืืง ืื ืืืงืืืจื ืืชืืช ืืืจืืขืืชื ืื ืขืชื ืืืืื ืื | 478 | 0.28 | |
ื ืชืชืืื | 65 | 0 | |
ืื ืืขืกืง ืขื | 19 | 0 |
End of preview. Expand in Data Studio
DiffusionPen Hebrew Handwriting
A large synthetic dataset of Hebrew handwritten text lines with ground-truth transcriptions, for training and evaluating handwritten text recognition (HTR / OCR) models. Every image is a single line of right-to-left Hebrew handwriting synthesized by DiffusionPen โ a style-conditioned latent-diffusion handwriting generator โ in one of 491 distinct writer styles, and quality-filtered by an independent OCR pass.
- 149,952 line images, 491 writer styles
- Splits: train 119,986 / validation 14,855 / test 15,111 (โ 80 / 10 / 10)
- Writer-independent: each writer style belongs to exactly one split โ a style seen in training never appears in validation or test
- Quality-gated: lines the OCR reader could not read back (CER > 0.8) were removed
Fields
Each row is one handwritten line and its transcription:
| field | type | description |
|---|---|---|
image |
image |
RGB PNG, 64 px tall, variable width โ one line of Hebrew handwriting |
text |
string |
ground-truth transcription (the label) |
style |
int32 |
writer-style id [0, 490]; images with the same id share handwriting |
cer |
float32 |
character error rate of an independent TrOCR re-read of the line (lower = cleaner) |
Usage
from datasets import load_dataset
ds = load_dataset("cyttic/diffusionpen-hebrew-handwriting")
print(ds)
sample = ds["train"][0]
sample["image"].save("line.png")
print(sample["text"], sample["style"], sample["cer"])
How it was built
- Text source. Sentences from Hebrew literary corpora are split into ~721 chunks of 1,000 lines each.
- Rendering. Each line is generated with DiffusionPen (a style-conditioned
latent-diffusion handwriting synthesizer). Every word is rendered best-of-N: N
candidates are sampled and read back with a fine-tuned Hebrew TrOCR reader
(
cyttic/exp10-trocr-hebrew-matan-full); the candidate with the lowest character error rate is kept. Words are then stitched right-to-left into a full line image. - Independent audit. The finished line images were re-read end-to-end by the same
TrOCR model to obtain the honest line-level
cerstored with each row. - Targeted improvement. Lines that scored
cer > 0.8were re-rendered with a heavier budget (DDIM-50 / best-of-20, then DDIM-100 / best-of-30 for the hardest), scoring each candidate under test-time distortions (blur, ยฑrotation, noise) so the most robust, legible rendering is chosen. - Filtering. Lines still unreadable (
cer > 0.8) after re-rendering were dropped (48 lines, almost all single-character labels a line reader cannot score). - Writer-independent split. The 491 styles are partitioned into train / validation / test (no style in more than one split) and greedily balanced to โ 80 / 10 / 10 by row count. Evaluation therefore measures generalization to unseen handwriting styles.
Intended use
- Training and benchmarking Hebrew HTR / line-recognition models with a proper writer-independent evaluation protocol.
- Pre-training or data augmentation for low-resource Hebrew handwriting tasks.
- Studying style-conditioned handwriting synthesis and OCR robustness.
Limitations and biases
- Synthetic. Images are model-generated, not scans of real handwriting; they may lack some artifacts of genuine documents (paper texture, ink bleed, real degradation).
ceris model-measured, from a specific TrOCR reader โ treat it as a relative quality signal, not an absolute ground truth. Some kept lines still have moderate CER.- Minor text overlap. The split is by writer, not by sentence. About 1.6 % of
validation/test rows contain a sentence that also appears (in a different, train-only
style) in the training set. Filter on
textif your protocol requires zero text overlap. - Text provenance. Transcriptions derive from Hebrew literary sources; verify you
have the rights for your use case. The
cc-by-4.0license covers the image/label collection and generation; it is not a rights grant over the underlying source texts.
Citation
If you use this dataset, please cite it as:
@misc{diffusionpen_hebrew_handwriting,
title = {DiffusionPen Hebrew Handwriting},
author = {cyttic},
year = {2026},
url = {https://huggingface.co/datasets/cyttic/diffusionpen-hebrew-handwriting}
}
- Downloads last month
- 503
