Datasets:
Document AMIDDA subset
Browse files
README.md
CHANGED
|
@@ -55,16 +55,31 @@ configs:
|
|
| 55 |
path: KHATT/val.csv
|
| 56 |
- split: test
|
| 57 |
path: KHATT/test.csv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
---
|
| 59 |
|
| 60 |
# Arabic Manuscript Collection
|
| 61 |
|
| 62 |
-
|
| 63 |
-
and **one label format** so they can be trained and evaluated together:
|
| 64 |
-
**82,561 labelled images** in total.
|
|
|
|
| 65 |
|
| 66 |
-
Four of the sources are historical manuscripts. KHATT is modern handwriting
|
| 67 |
-
included as a separate, optional subset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
Curated by **TheSeniorTeam**, a PSU senior project supervised by Prof. Samer Samarah.
|
| 70 |
We fine-tune an open vision-language model on historical Arabic handwriting and evaluate
|
|
@@ -79,8 +94,10 @@ it with CER/WER on held-out manuscripts. This repository is that project's data
|
|
| 79 |
| **AraMs-28k-HTR** | 19,739 | 1,486 | 6,744 | 27,969 | line | 14 books: 13 manuscripts in Naskh, Ruq'ah and Maghrebi scripts, plus 1 lithographed edition | 0% | CC BY-NC-SA 4.0 |
|
| 80 |
| **AHDQ** | 579 | 31 | 32 | 642 | **page** | Binarized handwritten Quran pages, 6 handwriting styles | 100% | MIT |
|
| 81 |
| *KHATT* | *8,094* | *1,901* | *1,403* | *11,398* | *line* | *Modern unconstrained handwriting, 838 writers* | *0%* | *Research use (see below)* |
|
|
|
|
| 82 |
|
| 83 |
-
Every CSV row has a matching image file, and the train, validation and test splits share no
|
|
|
|
| 84 |
|
| 85 |
**AHDQ is page-level.** Each image is a full page with a median of about 940 characters of
|
| 86 |
text, up to 3,600. Every other subset uses line crops with a median of 47–70 characters.
|
|
@@ -96,6 +113,14 @@ Batch AHDQ separately, or filter it out if your model has a short context.
|
|
| 96 |
test.csv
|
| 97 |
```
|
| 98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
- `image_path` is a bare filename inside `images/<split>/`. The CSV's name already
|
| 100 |
says which split it belongs to.
|
| 101 |
- `text` is the ground-truth transcription in Unicode Arabic, not normalized. Diacritics
|
|
@@ -121,6 +146,12 @@ from datasets import load_dataset
|
|
| 121 |
ds = load_dataset("TheSeniorTeam/Arabic_Manuscript_Collection_Dataset", "Muharaf")
|
| 122 |
```
|
| 123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
**With images:**
|
| 125 |
|
| 126 |
```python
|
|
@@ -135,7 +166,7 @@ df = pd.read_csv(hf_hub_download(repo, f"{subset}/{split}.csv", repo_type="datas
|
|
| 135 |
df["image"] = f"{subset}/images/{split}/" + df["image_path"]
|
| 136 |
```
|
| 137 |
|
| 138 |
-
**Whole repo** (about
|
| 139 |
|
| 140 |
```bash
|
| 141 |
hf download TheSeniorTeam/Arabic_Manuscript_Collection_Dataset --repo-type dataset --local-dir .
|
|
@@ -154,6 +185,7 @@ generalisation.
|
|
| 154 |
| AraMs-28k-HTR | Official and **split by book**: 9 train, 2 val, 3 test books | Official |
|
| 155 |
| AHDQ | **Ours.** No upstream split. 90/5/5, stratified by style so all six styles appear in every split | Ours |
|
| 156 |
| KHATT | Train official. **Test is ours:** 104 of 691 train writers held out, seed 3, split by writer | Official, writer-disjoint from train |
|
|
|
|
| 157 |
|
| 158 |
- **Omar-al-Saleh:** The 2,671-line **blind test** set from the NAKBA NLP 2026 shared task
|
| 159 |
is **deliberately not included**, so it can't end up in training by accident.
|
|
@@ -200,6 +232,7 @@ combined use **non-commercial**.
|
|
| 200 |
| AraMs-28k-HTR | CC BY-NC-SA 4.0 | [Zenodo 10.5281/zenodo.22095333](https://doi.org/10.5281/zenodo.22095333) |
|
| 201 |
| AHDQ | MIT | [Kaggle](https://www.kaggle.com/datasets/abdoukhadrembacke/ahdq-arabic-handwriting-dataset-from-quran) |
|
| 202 |
| KHATT | Free for research, distributed by KFUPM. Check their terms before redistributing. | [KHATT, KFUPM](https://doi.org/10.1016/j.patcog.2013.08.009) |
|
|
|
|
| 203 |
|
| 204 |
## Citation
|
| 205 |
|
|
@@ -238,3 +271,5 @@ If you use a subset, cite its original authors:
|
|
| 238 |
- **Omar-al-Saleh:** *NAKBA NLP 2026: Shared Task on Arabic Handwritten Manuscript
|
| 239 |
Understanding*, 2nd International Workshop, co-located with LREC 2026, Palma, Mallorca.
|
| 240 |
- **AHDQ:** XIDMA_AI (2024). *AHDQ (Arabic Handwriting Dataset from Quran)*. Kaggle.
|
|
|
|
|
|
|
|
|
| 55 |
path: KHATT/val.csv
|
| 56 |
- split: test
|
| 57 |
path: KHATT/test.csv
|
| 58 |
+
- config_name: AMIDDA
|
| 59 |
+
data_files:
|
| 60 |
+
- split: train
|
| 61 |
+
path: AMIDDA/data/train-*.parquet
|
| 62 |
+
- split: validation
|
| 63 |
+
path: AMIDDA/data/validation-*.parquet
|
| 64 |
+
- split: test
|
| 65 |
+
path: AMIDDA/data/test-*.parquet
|
| 66 |
---
|
| 67 |
|
| 68 |
# Arabic Manuscript Collection
|
| 69 |
|
| 70 |
+
Six Arabic handwritten text recognition (HTR) subsets. Five of them are converted to
|
| 71 |
+
**one layout** and **one label format** so they can be trained and evaluated together:
|
| 72 |
+
**82,561 labelled images** in total. The sixth, AMIDDA, is an upstream aggregate
|
| 73 |
+
republished as-is in Parquet.
|
| 74 |
|
| 75 |
+
Four of the five converted sources are historical manuscripts. KHATT is modern handwriting
|
| 76 |
+
and is included as a separate, optional subset.
|
| 77 |
+
|
| 78 |
+
> **AMIDDA overlaps Muharaf and KHATT.** AMIDDA bundles its own copies of `muharaf-public`
|
| 79 |
+
> (24,494 lines) and KHATT v1.0 (6,673 lines), split independently of the `Muharaf` and
|
| 80 |
+
> `KHATT` subsets here. Training on AMIDDA and evaluating on `Muharaf`/`KHATT` test (or the
|
| 81 |
+
> reverse) leaks lines across the split boundary. Use one or the other, or filter AMIDDA on
|
| 82 |
+
> its `dataset` column.
|
| 83 |
|
| 84 |
Curated by **TheSeniorTeam**, a PSU senior project supervised by Prof. Samer Samarah.
|
| 85 |
We fine-tune an open vision-language model on historical Arabic handwriting and evaluate
|
|
|
|
| 94 |
| **AraMs-28k-HTR** | 19,739 | 1,486 | 6,744 | 27,969 | line | 14 books: 13 manuscripts in Naskh, Ruq'ah and Maghrebi scripts, plus 1 lithographed edition | 0% | CC BY-NC-SA 4.0 |
|
| 95 |
| **AHDQ** | 579 | 31 | 32 | 642 | **page** | Binarized handwritten Quran pages, 6 handwriting styles | 100% | MIT |
|
| 96 |
| *KHATT* | *8,094* | *1,901* | *1,403* | *11,398* | *line* | *Modern unconstrained handwriting, 838 writers* | *0%* | *Research use (see below)* |
|
| 97 |
+
| *AMIDDA* | *53,420* | *6,675* | *6,684* | *66,779* | *line* | *Upstream aggregate of 8 corpora: Maghrebi and Oriental Arabic manuscripts, lithography, modern cursive* | *mixed* | *Per source (see below)* |
|
| 98 |
|
| 99 |
+
Every CSV row has a matching image file, and the train, validation and test splits share no
|
| 100 |
+
images. AMIDDA is the exception: it ships Parquet with embedded images and no CSV.
|
| 101 |
|
| 102 |
**AHDQ is page-level.** Each image is a full page with a median of about 940 characters of
|
| 103 |
text, up to 3,600. Every other subset uses line crops with a median of 47–70 characters.
|
|
|
|
| 113 |
test.csv
|
| 114 |
```
|
| 115 |
|
| 116 |
+
`AMIDDA/` does not follow this layout. It is the upstream Parquet release, images embedded:
|
| 117 |
+
|
| 118 |
+
```
|
| 119 |
+
AMIDDA/
|
| 120 |
+
data/train-*.parquet, validation-*.parquet, test-*.parquet
|
| 121 |
+
README.md # upstream card: per-corpus stats and baselines
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
- `image_path` is a bare filename inside `images/<split>/`. The CSV's name already
|
| 125 |
says which split it belongs to.
|
| 126 |
- `text` is the ground-truth transcription in Unicode Arabic, not normalized. Diacritics
|
|
|
|
| 146 |
ds = load_dataset("TheSeniorTeam/Arabic_Manuscript_Collection_Dataset", "Muharaf")
|
| 147 |
```
|
| 148 |
|
| 149 |
+
AMIDDA is Parquet, so the same call returns its images too, no zip handling needed:
|
| 150 |
+
|
| 151 |
+
```python
|
| 152 |
+
ds = load_dataset("TheSeniorTeam/Arabic_Manuscript_Collection_Dataset", "AMIDDA")
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
**With images:**
|
| 156 |
|
| 157 |
```python
|
|
|
|
| 166 |
df["image"] = f"{subset}/images/{split}/" + df["image_path"]
|
| 167 |
```
|
| 168 |
|
| 169 |
+
**Whole repo** (about 13.3 GB, of which AMIDDA is 8.9 GB):
|
| 170 |
|
| 171 |
```bash
|
| 172 |
hf download TheSeniorTeam/Arabic_Manuscript_Collection_Dataset --repo-type dataset --local-dir .
|
|
|
|
| 185 |
| AraMs-28k-HTR | Official and **split by book**: 9 train, 2 val, 3 test books | Official |
|
| 186 |
| AHDQ | **Ours.** No upstream split. 90/5/5, stratified by style so all six styles appear in every split | Ours |
|
| 187 |
| KHATT | Train official. **Test is ours:** 104 of 691 train writers held out, seed 3, split by writer | Official, writer-disjoint from train |
|
| 188 |
+
| AMIDDA | Upstream, unchanged | Upstream, unchanged |
|
| 189 |
|
| 190 |
- **Omar-al-Saleh:** The 2,671-line **blind test** set from the NAKBA NLP 2026 shared task
|
| 191 |
is **deliberately not included**, so it can't end up in training by accident.
|
|
|
|
| 232 |
| AraMs-28k-HTR | CC BY-NC-SA 4.0 | [Zenodo 10.5281/zenodo.22095333](https://doi.org/10.5281/zenodo.22095333) |
|
| 233 |
| AHDQ | MIT | [Kaggle](https://www.kaggle.com/datasets/abdoukhadrembacke/ahdq-arabic-handwriting-dataset-from-quran) |
|
| 234 |
| KHATT | Free for research, distributed by KFUPM. Check their terms before redistributing. | [KHATT, KFUPM](https://doi.org/10.1016/j.patcog.2013.08.009) |
|
| 235 |
+
| AMIDDA | `other`, and per-source on top: 8 upstream corpora with their own terms. Check before any redistribution or commercial use. | [`calfa-ai/AMIDDA`](https://huggingface.co/datasets/calfa-ai/AMIDDA) |
|
| 236 |
|
| 237 |
## Citation
|
| 238 |
|
|
|
|
| 271 |
- **Omar-al-Saleh:** *NAKBA NLP 2026: Shared Task on Arabic Handwritten Manuscript
|
| 272 |
Understanding*, 2nd International Workshop, co-located with LREC 2026, Palma, Mallorca.
|
| 273 |
- **AHDQ:** XIDMA_AI (2024). *AHDQ (Arabic Handwriting Dataset from Quran)*. Kaggle.
|
| 274 |
+
- **AMIDDA:** Calfa, [`calfa-ai/AMIDDA`](https://huggingface.co/datasets/calfa-ai/AMIDDA). Cite the
|
| 275 |
+
eight upstream corpora listed on that card, not AMIDDA alone.
|