Dataset Viewer
Auto-converted to Parquet Duplicate
The dataset viewer is not available for this split.
The response could not be stored in the cache.
Error code:   ResponseNotStorableError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

SMedDV: Synthetic Mediterranean Document Validation (v5)

Synthetic text-line OCR data for reading identity documents in Arabic-script, Hebrew and Latin-script languages: one rendered field line per row (WebP) with its label. No document photos, no real people, no real identifiers.

At a glance

Measure Value
Rows 3,527,958 — train 3,386,840 / validation 141,118 (4.00%)
Classes 503 characters + space; every class ≥ 755 train / ≥ 24 validation occurrences
Languages 53 codes + MRZ
Scripts Arabic, Hebrew, Latin, MRZ
Fonts 34 families (OFL / permissive)
Images WebP q85, 48 px high, width 10–2,338 px (mean 315)
Labels text logical order, text_visual visual order (Paddle)
Files 19 Parquet shards (18 train, 1 validation), 12.1 GB; Paddle lists + dict.txt
Licence CC BY-SA 4.0 (attribution)

Coverage map

SMedDV coverage map

Which countries' documents this set can read (legend in the image). Green: the documents print an Arabic-script language and every document language is covered. Hatched green: an Arabic-script language is printed but another printed language is not covered (India: Urdu; Pakistan: Sindhi; also Morocco, Somalia, Eritrea, Brunei, Singapore). Blue: covered, no Arabic-script language. Brown: a printed language is not covered. Document languages follow the official-document study where it has a row, else CLDR; re-checked 2026-12-02.

Quick start

from datasets import load_dataset

ds = load_dataset("hahouari/SMedDV", split="validation")
row = ds[0]
row["image"], row["text"], row["text_visual"], row["lang"]

PaddleOCR (CTC): python tools/export_paddle.py --output ./paddle_tree writes images, visual-order lists and dict.txt. See paddle/README.md.

Composition

Script Languages Rows Share
Arabic 5 (ar, fa, ur, ps, ckb) 2,251,114 63.81%
Latin 47 799,565 22.66%
Hebrew 1 307,244 8.71%
MRZ 1 170,035 4.82%
Rows per category
Category Train Validation Total Share
generic 768,580 32,301 800,881 22.70%
name 727,120 30,146 757,266 21.46%
place 440,161 18,239 458,400 12.99%
date 352,219 14,669 366,888 10.40%
number 352,015 14,643 366,658 10.39%
short 174,953 7,307 182,260 5.17%
mrz 163,212 6,823 170,035 4.82%
authority 146,126 6,080 152,206 4.31%
mixed 145,804 6,115 151,919 4.31%
coverage 116,650 4,795 121,445 3.44%
Rows per language (54 codes)
Code Language Train Validation Total
af Afrikaans 18,322 754 19,076
ar Arabic 1,178,043 49,466 1,227,509
az Azerbaijani 15,617 675 16,292
bs Bosnian 14,409 648 15,057
ca Catalan 19,299 814 20,113
ckb Central Kurdish (Sorani) 131,872 5,410 137,282
cs Czech 26,486 1,095 27,581
cy Welsh 22,349 938 23,287
da Danish 13,923 574 14,497
de German 15,415 602 16,017
en English 15,135 619 15,754
es Spanish 15,161 658 15,819
et Estonian 15,096 625 15,721
eu Basque 13,847 555 14,402
fa Persian 359,178 14,899 374,077
fi Finnish 23,711 965 24,676
fil Filipino 14,499 613 15,112
fr French 15,356 655 16,011
ga Irish 13,919 591 14,510
gl Galician 13,818 578 14,396
he Hebrew 294,949 12,295 307,244
hr Croatian 13,665 569 14,234
hu Hungarian 15,205 684 15,889
id Indonesian 13,740 592 14,332
is Icelandic 14,176 586 14,762
it Italian 13,864 541 14,405
ku Kurdish (Kurmanji) 14,015 629 14,644
la Latin 14,098 572 14,670
lb Luxembourgish 13,930 572 14,502
lt Lithuanian 20,372 790 21,162
lv Latvian 16,228 686 16,914
mi Māori 13,804 564 14,368
mrz Machine-readable zone (not a language) 163,212 6,823 170,035
ms Malay 13,842 630 14,472
mt Maltese 15,640 646 16,286
nl Dutch 14,072 579 14,651
no Norwegian 16,883 708 17,591
oc Occitan 13,850 589 14,439
pl Polish 14,000 535 14,535
ps Pashto 163,268 6,680 169,948
pt Portuguese 14,132 580 14,712
qu Quechua 14,488 565 15,053
rm Romansh 14,032 580 14,612
ro Romanian 15,582 684 16,266
sk Slovak 15,515 642 16,157
sl Slovenian 13,825 563 14,388
sq Albanian 13,908 593 14,501
sr-Latn Serbian (Latin script) 14,008 622 14,630
sv Swedish 13,975 576 14,551
sw Swahili 13,880 559 14,439
tr Turkish 14,037 577 14,614
ur Urdu 328,668 13,630 342,298
uz Uzbek 13,917 567 14,484
vi Vietnamese 58,605 2,376 60,981
Rendering: backgrounds, degradation, label length
Background group Rows Share
Flat 459,050 13.01%
Gradients 687,899 19.50%
Procedural guilloche 458,446 12.99%
Noise 458,604 13.00%
CC0 security patterns 688,400 19.51%
ambientCG material textures 775,559 21.98%
Degradation tier Rows Share
clean 1,058,029 29.99%
heavy 353,171 10.01%
light 1,235,438 35.02%
medium 881,320 24.98%

contrast_clamped flag: 214 rows (not a fifth tier).

Length Rows Share
1-10 1,562,820 44.30%
11-20 1,147,722 32.53%
21-30 357,228 10.13%
31-40 157,867 4.47%
41-50 141,211 4.00%
51-64 161,110 4.57%

long_text 184,114 rows (5.22%); hard_negative 60,618 rows (1.72%).

Data fields

image, text, text_visual, index, lang, script, category, font, font_style, font_weight, width, height, background_mode, degradation_tier, seed, aug, long_text, hard_negative, line_idx, mrz_format, coverage_char, coverage_mode, base_dir.

  • text: logical Unicode order. text_visual: visual left-to-right order (Paddle lists). Pick the order your model expects; do not mix them.
  • image: original WebP bytes, not re-encoded.
  • paddle/*_list.txt paths refer to the source loose-image layout; use tools/export_paddle.py to materialize them.

Validation split

Fixed by splits/validation_indices.json; no index is in both splits. Not text-disjoint: 63,613 of 141,118 validation rows (45.08%) share their text with a train row (34.34% of distinct strings). Same synthetic generator as train: not a real-document benchmark.

Limitations

  • Labels are normalized for document parsing (Western digits, no tatweel/harakat).
  • RTL round trip: 17 of 10,000 Arabic lines with digit ranges or punctuation restore to a different order (docs/VALIDATION.md).
  • Language and category proportions are generator targets, not real-document frequencies; ID-like values follow public formats only.
  • Wikipedia credit is at dataset/shard level (article provenance not kept; article-level credit on request).

Licence and citation

CC BY-SA 4.0 (LICENSE, LICENSES/, ATTRIBUTION.md). Commercial use allowed; credit the dataset and keep the notices when redistributing; adaptations stay CC BY-SA. Citation is welcome, not required for private use.

@dataset{SMedDV_v5,
  author  = {Hocine Abdellatif Houari},
  title   = {SMedDV: Synthetic Mediterranean Document Validation},
  version = {v5},
  year    = {2026},
  url     = {https://huggingface.co/datasets/hahouari/SMedDV}
}

Files

data/ Parquet shards · paddle/ · splits/ · metadata/ · docs/ (statistics, recipe, validation, reproducibility) · tools/ · checksums/. The card (README) and map were refreshed on 2026-11-20; data files are unchanged, so checksums/files.sha256 still lists the original release README.

Downloads last month
1,121