Dataset Viewer
Auto-converted to Parquet Duplicate
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.

Sample lines

  • 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

  1. Text source. Sentences from Hebrew literary corpora are split into ~721 chunks of 1,000 lines each.
  2. 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.
  3. Independent audit. The finished line images were re-read end-to-end by the same TrOCR model to obtain the honest line-level cer stored with each row.
  4. Targeted improvement. Lines that scored cer > 0.8 were 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.
  5. Filtering. Lines still unreadable (cer > 0.8) after re-rendering were dropped (48 lines, almost all single-character labels a line reader cannot score).
  6. 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).
  • cer is 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 text if 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.0 license 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