alm7zm commited on
Commit
23ca3b4
·
verified ·
1 Parent(s): 7f0ba80

Document OpenITI-Makhzan subset; restore standard LFS .gitattributes

Browse files
Files changed (2) hide show
  1. .gitattributes +44 -22
  2. README.md +50 -7
.gitattributes CHANGED
@@ -1,22 +1,44 @@
1
- AMIDDA/data/test-00000-of-00002.parquet filter=lfs diff=lfs merge=lfs -text
2
- AMIDDA/data/test-00001-of-00002.parquet filter=lfs diff=lfs merge=lfs -text
3
- AMIDDA/data/train-00000-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
4
- AMIDDA/data/train-00001-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
5
- AMIDDA/data/train-00002-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
6
- AMIDDA/data/train-00003-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
7
- AMIDDA/data/train-00004-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
8
- AMIDDA/data/train-00005-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
9
- AMIDDA/data/train-00006-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
10
- AMIDDA/data/train-00007-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
11
- AMIDDA/data/train-00008-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
12
- AMIDDA/data/train-00009-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
13
- AMIDDA/data/train-00010-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
14
- AMIDDA/data/train-00011-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
15
- AMIDDA/data/train-00012-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
16
- AMIDDA/data/train-00013-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
17
- AMIDDA/data/train-00014-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
18
- AMIDDA/data/train-00015-of-00016.parquet filter=lfs diff=lfs merge=lfs -text
19
- AMIDDA/data/validation-00000-of-00002.parquet filter=lfs diff=lfs merge=lfs -text
20
- AMIDDA/data/validation-00001-of-00002.parquet filter=lfs diff=lfs merge=lfs -text
21
- OpenITI-Makhzan_Metadata_2026-1-2/images.zip filter=lfs diff=lfs merge=lfs -text
22
- OpenITI-Makhzan_Metadata_2026-1-2/train.csv filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ # Image files - uncompressed
37
+ *.bmp filter=lfs diff=lfs merge=lfs -text
38
+ *.gif filter=lfs diff=lfs merge=lfs -text
39
+ *.png filter=lfs diff=lfs merge=lfs -text
40
+ *.tiff filter=lfs diff=lfs merge=lfs -text
41
+ # Image files - compressed
42
+ *.jpg filter=lfs diff=lfs merge=lfs -text
43
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
44
+ *.webp filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -63,14 +63,22 @@ configs:
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.
@@ -95,9 +103,13 @@ it with CER/WER on held-out manuscripts. This repository is that project's data
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.
@@ -121,6 +133,22 @@ AMIDDA/
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
@@ -152,6 +180,15 @@ AMIDDA is Parquet, so the same call returns its images too, no zip handling need
152
  ds = load_dataset("TheSeniorTeam/Arabic_Manuscript_Collection_Dataset", "AMIDDA")
153
  ```
154
 
 
 
 
 
 
 
 
 
 
155
  **With images:**
156
 
157
  ```python
@@ -166,7 +203,7 @@ df = pd.read_csv(hf_hub_download(repo, f"{subset}/{split}.csv", repo_type="datas
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 .
@@ -186,6 +223,7 @@ generalisation.
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.
@@ -215,6 +253,10 @@ but the files are `.jpg`; this copy uses the real filenames.
215
  - **Diacritics vary by subset**, from 0% (AraMs, KHATT) to 100% (AHDQ). A model trained on
216
  a mix has to learn when tashkeel is expected. Report CER both with and without
217
  diacritics.
 
 
 
 
218
  - A handful of Muharaf and Omar transcriptions contain a newline inside the text field,
219
  and one Muharaf train row has empty text. Use a real CSV parser, not line splitting.
220
  - Omar-al-Saleh has a single writer, so good test scores there say little about other hands.
@@ -233,6 +275,7 @@ combined use **non-commercial**.
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
 
 
63
  path: AMIDDA/data/validation-*.parquet
64
  - split: test
65
  path: AMIDDA/data/test-*.parquet
66
+ - config_name: OpenITI-Makhzan_Metadata_2026-1-2
67
+ data_files:
68
+ - split: train
69
+ path: OpenITI-Makhzan_Metadata_2026-1-2/train.csv
70
+ - split: validation
71
+ path: OpenITI-Makhzan_Metadata_2026-1-2/val.csv
72
+ - split: test
73
+ path: OpenITI-Makhzan_Metadata_2026-1-2/test.csv
74
  ---
75
 
76
  # Arabic Manuscript Collection
77
 
78
+ Seven Arabic handwritten text recognition (HTR) subsets. Five are converted to **one layout**
79
+ and **one label format** so they can be trained and evaluated together: **82,561 labelled
80
+ images** in total. Two are republished closer to their source shape: AMIDDA as upstream
81
+ Parquet, and OpenITI-Makhzan as page images with line-level coordinates.
82
 
83
  Four of the five converted sources are historical manuscripts. KHATT is modern handwriting
84
  and is included as a separate, optional subset.
 
103
  | **AHDQ** | 579 | 31 | 32 | 642 | **page** | Binarized handwritten Quran pages, 6 handwriting styles | 100% | MIT |
104
  | *KHATT* | *8,094* | *1,901* | *1,403* | *11,398* | *line* | *Modern unconstrained handwriting, 838 writers* | *0%* | *Research use (see below)* |
105
  | *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)* |
106
+ | *OpenITI-Makhzan_Metadata_2026-1-2* | *18,447* | *2,343* | *2,289* | *23,079* | *line on a **page** image* | *208 documents, 1,497 pages. Multilingual: Arabic 12,773, Persian 5,381, Ottoman Turkish 3,654, Urdu 1,055. Six scripts, led by naskh and nastaliq* | *27%* | *Unverified (see below)* |
107
 
108
+ For the five converted subsets, every CSV row has a matching image file, and the train,
109
+ validation and test splits share no images. Two subsets differ: AMIDDA ships Parquet with
110
+ embedded images and no CSV, and `OpenITI-Makhzan_Metadata_2026-1-2` has many
111
+ rows per image, because its images are whole pages and each row is one line inside a page
112
+ (median 14 lines per page, up to 74).
113
 
114
  **AHDQ is page-level.** Each image is a full page with a median of about 940 characters of
115
  text, up to 3,600. Every other subset uses line crops with a median of 47–70 characters.
 
133
  README.md # upstream card: per-corpus stats and baselines
134
  ```
135
 
136
+ `OpenITI-Makhzan_Metadata_2026-1-2/` keeps the `images.zip` + CSV shape but **not** the
137
+ two-column schema. Its 22 columns carry page-level line coordinates and catalogue metadata:
138
+
139
+ | Column group | Columns |
140
+ |---|---|
141
+ | Text | `text` |
142
+ | Image | `image_file` (a page, not a line crop), `page_id`, `page_number` |
143
+ | Geometry | `bbox_x`, `bbox_y`, `bbox_width`, `bbox_height`, `polygon` (all rows populated) |
144
+ | Provenance | `document_id`, `shelfmark`, `line_id`, `line_number`, `source_pdf` |
145
+ | Catalogue | `lang`, `script`, `genre`, `form`, `document_type` |
146
+ | QA | `transcriber`, `vetter`, `vetting_status` (every row vetted at least once) |
147
+
148
+ The geometry columns make this the only subset you can use for line segmentation or
149
+ layout analysis, not just recognition. To train a line recogniser on it, crop each line
150
+ from its page with `bbox_*` or `polygon` first.
151
+
152
  - `image_path` is a bare filename inside `images/<split>/`. The CSV's name already
153
  says which split it belongs to.
154
  - `text` is the ground-truth transcription in Unicode Arabic, not normalized. Diacritics
 
180
  ds = load_dataset("TheSeniorTeam/Arabic_Manuscript_Collection_Dataset", "AMIDDA")
181
  ```
182
 
183
+ `OpenITI-Makhzan_Metadata_2026-1-2` loads the same way as the CSV subsets, but
184
+ remember `image_file` names a page and the row is one line inside it:
185
+
186
+ ```python
187
+ ds = load_dataset("TheSeniorTeam/Arabic_Manuscript_Collection_Dataset",
188
+ "OpenITI-Makhzan_Metadata_2026-1-2")
189
+ arabic_naskh = ds["train"].filter(lambda x: x["lang"] == "ara" and x["script"] == "naskh")
190
+ ```
191
+
192
  **With images:**
193
 
194
  ```python
 
203
  df["image"] = f"{subset}/images/{split}/" + df["image_path"]
204
  ```
205
 
206
+ **Whole repo** (about 19.4 GB: AMIDDA 8.9 GB, OpenITI-Makhzan 6.1 GB, the rest 4.4 GB):
207
 
208
  ```bash
209
  hf download TheSeniorTeam/Arabic_Manuscript_Collection_Dataset --repo-type dataset --local-dir .
 
223
  | AHDQ | **Ours.** No upstream split. 90/5/5, stratified by style so all six styles appear in every split | Ours |
224
  | KHATT | Train official. **Test is ours:** 104 of 691 train writers held out, seed 3, split by writer | Official, writer-disjoint from train |
225
  | AMIDDA | Upstream, unchanged | Upstream, unchanged |
226
+ | OpenITI-Makhzan_Metadata_2026-1-2 | As shipped, and **document-disjoint**: 98 train, 54 val, 56 test documents, no document or page in two splits | As shipped |
227
 
228
  - **Omar-al-Saleh:** The 2,671-line **blind test** set from the NAKBA NLP 2026 shared task
229
  is **deliberately not included**, so it can't end up in training by accident.
 
253
  - **Diacritics vary by subset**, from 0% (AraMs, KHATT) to 100% (AHDQ). A model trained on
254
  a mix has to learn when tashkeel is expected. Report CER both with and without
255
  diacritics.
256
+ - **`OpenITI-Makhzan_Metadata_2026-1-2` catalogue columns are not normalised.** `form`
257
+ mixes case and has at least one corrupt value (`prose`, `Prose`, `poetry`, `Poetry`,
258
+ `Prose, Poetry`, `ProseProse`, `calligraphed heading`). `source_pdf` is filled for only
259
+ 23% of rows. Normalise case before grouping on these.
260
  - A handful of Muharaf and Omar transcriptions contain a newline inside the text field,
261
  and one Muharaf train row has empty text. Use a real CSV parser, not line splitting.
262
  - Omar-al-Saleh has a single writer, so good test scores there say little about other hands.
 
275
  | AHDQ | MIT | [Kaggle](https://www.kaggle.com/datasets/abdoukhadrembacke/ahdq-arabic-handwriting-dataset-from-quran) |
276
  | KHATT | Free for research, distributed by KFUPM. Check their terms before redistributing. | [KHATT, KFUPM](https://doi.org/10.1016/j.patcog.2013.08.009) |
277
  | 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) |
278
+ | OpenITI-Makhzan_Metadata_2026-1-2 | **Not yet verified.** The upstream terms for this release have not been confirmed, and the 208 documents come from multiple holding libraries with their own shelfmarks. Treat as all-rights-reserved until checked. | OpenITI / Makhzan (to be confirmed) |
279
 
280
  ## Citation
281