Coverage correction: wrong-language configs, unread nested text, re-sample
Browse files`results.jsonl` (the DOI record) is untouched.
- `scan_hf.py`: prefers Arabic-coded configs, reads nested strings, reports `arabic_fields`, imports the installed arabic-lint
- New `rescan_configs.py`; re-sample of 39 datasets in `results_rescan_2026-10.jsonl` and `rescan_summary.md` (run on 27 Oct with a browser port of the same rules, cross-checked against arabic-lint 0.8.0)
- **New finding:** `HPLT/DocHPLT` and `HuggingFaceFW/finepdfs-edu` carry `reshaped` presentation-form runs in a small share of sampled fields, in logical order; the card's 'only one reshaped dataset' caveat is updated
- Card: coverage correction (16 non-Arabic configs + 3 ace_Arab, 21 zero-field datasets), correction-log entry, reproduction note, re-sample limits stated
- Ships `targets.json` so `audit_all.py` runs; MIT `LICENSE` for the code; removed the `/tmp/al4` path from add_severity.py; removed `task_categories: text-classification`
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GaKH7wkxcBhgmbNVzYaxR2
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01GaKH7wkxcBhgmbNVzYaxR2
- LICENSE +30 -0
- README.md +55 -2
- add_severity.py +0 -1
- rescan_configs.py +83 -0
- rescan_summary.md +7 -0
- results_rescan_2026-10.jsonl +39 -0
- scan_hf.py +106 -25
- targets.json +343 -0
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 Syamjith NK
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
NOTE ON SCOPE
|
| 26 |
+
|
| 27 |
+
The CODE in this repository (scorers, harnesses, generators) is MIT licensed as
|
| 28 |
+
above. The DATA and RESULTS (test sets, per-item results, rendered outputs) are
|
| 29 |
+
released under Creative Commons Attribution 4.0 International (CC BY 4.0), as
|
| 30 |
+
declared in the dataset card.
|
|
@@ -2,8 +2,6 @@
|
|
| 2 |
license: cc-by-4.0
|
| 3 |
language:
|
| 4 |
- ar
|
| 5 |
-
task_categories:
|
| 6 |
-
- text-classification
|
| 7 |
tags:
|
| 8 |
- arabic
|
| 9 |
- data-quality
|
|
@@ -151,6 +149,44 @@ SentencePiece model is immune, because XLM-R normalises and they do not. Re-runn
|
|
| 151 |
only; nothing in this dataset measures visual order, and no row here should be read as a
|
| 152 |
claim about it.
|
| 153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
## Corrections
|
| 155 |
|
| 156 |
Findings here are about other people's public work, so there has to be a way to contest them
|
|
@@ -173,6 +209,17 @@ wrongly is enough; you do not need to diagnose the bug.
|
|
| 173 |
|
| 174 |
### Correction log
|
| 175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
**2026-09-13 — `Yousefmd/arabic_ocr_dataset` is not stored in visual order.** The card, the
|
| 177 |
findings write-up and a discussion opened on that repository all stated that the labels had
|
| 178 |
been through `arabic_reshaper.reshape()` **and** `bidi.algorithm.get_display()`, and called
|
|
@@ -208,6 +255,10 @@ pip install arabic-lint
|
|
| 208 |
python3 audit_all.py # https://github.com/Syamjith-NK/arabic-lint
|
| 209 |
```
|
| 210 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
## Citation
|
| 212 |
|
| 213 |
Archived with a DOI on Zenodo, so the exact version behind these numbers stays citable even
|
|
@@ -223,3 +274,5 @@ as this card is updated: **[10.5281/zenodo.22733934](https://doi.org/10.5281/zen
|
|
| 223 |
url = {https://doi.org/10.5281/zenodo.22733934}
|
| 224 |
}
|
| 225 |
```
|
|
|
|
|
|
|
|
|
| 2 |
license: cc-by-4.0
|
| 3 |
language:
|
| 4 |
- ar
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
- arabic
|
| 7 |
- data-quality
|
|
|
|
| 149 |
only; nothing in this dataset measures visual order, and no row here should be read as a
|
| 150 |
claim about it.
|
| 151 |
|
| 152 |
+
## Coverage correction, 27 October 2026
|
| 153 |
+
|
| 154 |
+
`scan_hf.py` took the first config that had a `train` or `test` split, without
|
| 155 |
+
checking its language. For a multilingual corpus that is usually an alphabetically
|
| 156 |
+
early, non-Arabic config, so **16 of the 276 readable datasets were sampled in another
|
| 157 |
+
language** — for example `allenai/c4` as `af`, `wikimedia/wikipedia` as
|
| 158 |
+
`20231101.ab`, `gsarti/flores_101` as `afr` and `CohereLabs/Global-MMLU` as `am` —
|
| 159 |
+
and 3 more as Acehnese in Arabic script (`ace_Arab`). Those 19 contribute 8,534 of
|
| 160 |
+
the 119,517 text fields. Separately, **21 readable datasets contributed 0 text
|
| 161 |
+
fields**, because the scanner read only top-level string columns and their text sits
|
| 162 |
+
in lists or nested records. About 240 of the 276 were therefore scanned in Arabic.
|
| 163 |
+
|
| 164 |
+
This also corrects *What this does not establish*: several of the largest corpora
|
| 165 |
+
(C4, Wikipedia, HPLT, FLORES) were readable. They were sampled in the wrong language,
|
| 166 |
+
not blocked by the viewer.
|
| 167 |
+
|
| 168 |
+
`results.jsonl` is left exactly as published, because it is the record behind the
|
| 169 |
+
DOI. `scan_hf.py` now prefers a config whose name carries an Arabic language code,
|
| 170 |
+
reads strings inside lists and records, and reports `arabic_fields`.
|
| 171 |
+
`rescan_configs.py` re-samples the affected datasets into
|
| 172 |
+
`results_rescan_2026-10.jsonl`.
|
| 173 |
+
|
| 174 |
+
Re-sampled on 27 October 2026 with arabic-lint 0.8.0's detection rules, 100 rows per dataset:
|
| 175 |
+
|
| 176 |
+
- Re-sampled: **39** datasets (18 on the wrong config, 21 with zero fields read); 4 could not be read this time.
|
| 177 |
+
- Read now: **526,366** text fields, of which **440,918** contain Arabic letters.
|
| 178 |
+
- Datasets with any finding: **3** — spans by severity: {'reshaped': 6926, 'partial': 4846, 'stray': 1873}.
|
| 179 |
+
- `HPLT/DocHPLT` (ar-en): 7/13100 fields, worst severity reshaped
|
| 180 |
+
- `HuggingFaceFW/finepdfs-edu` (arb_Arab): 11/4310 fields, worst severity reshaped
|
| 181 |
+
- `allenai/c4` (ar): 3/300 fields, worst severity stray
|
| 182 |
+
- Still no text fields (audio, images or non-text data): `heshamelmahdi/egyptian-arabic-orpheus-tokenized`.
|
| 183 |
+
|
| 184 |
+
Of the 18 config switches, 15 move a wrong-language sample to an Arabic config (`sarulab-speech/yodas2_sidon` could not be read this time), and `Helsinki-NLP/opus-100` and `unimelb-nlp/wikiann` were re-sampled with the zero-field group. The other three switches are not language fixes: `MBZUAI/ArabicMMLU` names its configs by subject and is Arabic either way; `quranlab/quran-audio` matched the reciter name `hani-ar-rifai`, and its new sample holds no Arabic letters; `quranlab/hadith` moved from its `index` config to an Arabic one but could not be read. `QCRI/ImageEval-ArabicNLP26` (Arabic is `task1a_msa`) and `mhardalov/exams` (Arabic only inside `multilingual`) have no Arabic-coded config name, so they were not re-sampled.
|
| 185 |
+
|
| 186 |
+
Nested strings now count one field each, so token lists dominate the total (`occiglot/tokenizer-wiki-bench` alone contributes 487,296); compare finding rates, not field totals, with the September run.
|
| 187 |
+
|
| 188 |
+
**What the re-sample changes.** Two large PDF-derived corpora, `HPLT/DocHPLT` and `HuggingFaceFW/finepdfs-edu`, carry `reshaped` runs of stored presentation forms in a small share of sampled fields (7 of 13,100 and 11 of 4,310). The sampled runs are in logical order, which is the pattern [ArPDF](https://huggingface.co/datasets/syamjithnk/arpdf) measures when text is extracted from a PDF that stores shaped glyphs; this sample does not establish the cause. It does change the caveat above: `Yousefmd/arabic_ocr_dataset` is no longer the only dataset with `reshaped` runs, and stored presentation forms reach two widely used corpora, at a low rate.
|
| 189 |
+
|
| 190 |
## Corrections
|
| 191 |
|
| 192 |
Findings here are about other people's public work, so there has to be a way to contest them
|
|
|
|
| 209 |
|
| 210 |
### Correction log
|
| 211 |
|
| 212 |
+
**2026-10-27 — coverage: wrong-language configs and unread fields.** Found in an
|
| 213 |
+
external audit of this card. 16 readable datasets were sampled on a non-Arabic
|
| 214 |
+
config, 3 on `ace_Arab`, and 21 yielded no text fields; see *Coverage correction*.
|
| 215 |
+
Cause: the split chooser assumed a dataset's first `train`/`test` config was its
|
| 216 |
+
Arabic one, and the scanner skipped nested text. The headline finding, one dataset
|
| 217 |
+
with presentation forms in every sampled field, does not depend on either. Fixed in
|
| 218 |
+
the same pass: `targets.json` now ships, so `audit_all.py` runs as published; the
|
| 219 |
+
scripts import the installed `arabic-lint` instead of a scratch path; the code
|
| 220 |
+
is licensed MIT (`LICENSE`); and `task_categories: text-classification` was removed,
|
| 221 |
+
because this dataset is not a classification task.
|
| 222 |
+
|
| 223 |
**2026-09-13 — `Yousefmd/arabic_ocr_dataset` is not stored in visual order.** The card, the
|
| 224 |
findings write-up and a discussion opened on that repository all stated that the labels had
|
| 225 |
been through `arabic_reshaper.reshape()` **and** `bidi.algorithm.get_display()`, and called
|
|
|
|
| 255 |
python3 audit_all.py # https://github.com/Syamjith-NK/arabic-lint
|
| 256 |
```
|
| 257 |
|
| 258 |
+
`targets.json` (the 341 dataset ids) ships alongside since 27 October 2026;
|
| 259 |
+
before that `audit_all.py` could not run as published. `rescan_configs.py`
|
| 260 |
+
reproduces the coverage correction.
|
| 261 |
+
|
| 262 |
## Citation
|
| 263 |
|
| 264 |
Archived with a DOI on Zenodo, so the exact version behind these numbers stays citable even
|
|
|
|
| 274 |
url = {https://doi.org/10.5281/zenodo.22733934}
|
| 275 |
}
|
| 276 |
```
|
| 277 |
+
|
| 278 |
+
**License:** data CC BY 4.0; code MIT (see `LICENSE`, added 27 October 2026).
|
|
@@ -7,7 +7,6 @@ recorded how MANY findings, never what KIND. A published number that cannot be i
|
|
| 7 |
is just an assertion with a filename.
|
| 8 |
"""
|
| 9 |
import json, sys, time, urllib.parse, urllib.request, collections, pathlib
|
| 10 |
-
sys.path.insert(0, "/tmp/al4/src")
|
| 11 |
from arabic_lint.detect import scan_text, SEVERITY_ORDER
|
| 12 |
|
| 13 |
def rows(ds, cfg, sp, n=100, tries=3):
|
|
|
|
| 7 |
is just an assertion with a filename.
|
| 8 |
"""
|
| 9 |
import json, sys, time, urllib.parse, urllib.request, collections, pathlib
|
|
|
|
| 10 |
from arabic_lint.detect import scan_text, SEVERITY_ORDER
|
| 11 |
|
| 12 |
def rows(ds, cfg, sp, n=100, tries=3):
|
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Re-sample the datasets that the September run scanned in the wrong place.
|
| 3 |
+
|
| 4 |
+
Author: Syamjith NK
|
| 5 |
+
|
| 6 |
+
Two groups from results.jsonl are re-sampled with the corrected scan_hf.audit():
|
| 7 |
+
|
| 8 |
+
1. wrong-config: the stored config is not "default" and not Arabic-coded, and the
|
| 9 |
+
dataset now offers an Arabic-coded config, so the sample came from another
|
| 10 |
+
language (allenai/c4 as "af", wikimedia/wikipedia as "20231101.ab", ...).
|
| 11 |
+
2. zero-fields: readable, but 0 text fields were read, because the text sits in
|
| 12 |
+
lists or nested records.
|
| 13 |
+
|
| 14 |
+
results.jsonl is NOT modified: it is the record behind the DOI. Output goes to
|
| 15 |
+
results_rescan_2026-10.jsonl and rescan_summary.md.
|
| 16 |
+
|
| 17 |
+
pip install arabic-lint
|
| 18 |
+
python rescan_configs.py
|
| 19 |
+
"""
|
| 20 |
+
import collections, json, time
|
| 21 |
+
from pathlib import Path
|
| 22 |
+
|
| 23 |
+
from scan_hf import audit, choose_split, is_arabic_config
|
| 24 |
+
|
| 25 |
+
HERE = Path(__file__).parent
|
| 26 |
+
rows = [json.loads(l) for l in (HERE / "results.jsonl").read_text(encoding="utf-8").splitlines()
|
| 27 |
+
if l.strip()]
|
| 28 |
+
|
| 29 |
+
todo = []
|
| 30 |
+
for r in rows:
|
| 31 |
+
if not r.get("readable"):
|
| 32 |
+
continue
|
| 33 |
+
if r["text_fields"] == 0:
|
| 34 |
+
todo.append((r, "zero-fields"))
|
| 35 |
+
elif r["config"] != "default" and not is_arabic_config(r["config"]):
|
| 36 |
+
cfg, _, rule, err = choose_split(r["dataset"])
|
| 37 |
+
time.sleep(0.5)
|
| 38 |
+
if not err and rule == "arabic-config" and cfg != r["config"]:
|
| 39 |
+
todo.append((r, "wrong-config"))
|
| 40 |
+
|
| 41 |
+
print(f"re-sampling {len(todo)} datasets", flush=True)
|
| 42 |
+
out = []
|
| 43 |
+
for i, (old, why) in enumerate(todo, 1):
|
| 44 |
+
new = audit(old["dataset"], n=100)
|
| 45 |
+
new.update({"reason_rescanned": why, "previous_config": old["config"],
|
| 46 |
+
"previous_text_fields": old["text_fields"],
|
| 47 |
+
"previous_fields_with_findings": old["fields_with_findings"]})
|
| 48 |
+
out.append(new)
|
| 49 |
+
tag = "ERROR " + new["error"][:50] if "error" in new else (
|
| 50 |
+
f"{new['fields_corrupted']}/{new['text_fields']} fields, "
|
| 51 |
+
f"{new['arabic_fields']} Arabic, config {new['config']}")
|
| 52 |
+
print(f" [{i}/{len(todo)}] {why:12} {old['dataset'][:50]:52} {tag}", flush=True)
|
| 53 |
+
time.sleep(1.0)
|
| 54 |
+
|
| 55 |
+
(HERE / "results_rescan_2026-10.jsonl").write_text(
|
| 56 |
+
"".join(json.dumps(o, ensure_ascii=False) + "\n" for o in out), encoding="utf-8")
|
| 57 |
+
|
| 58 |
+
ok = [o for o in out if "error" not in o]
|
| 59 |
+
hits = [o for o in ok if o["fields_corrupted"]]
|
| 60 |
+
sev = collections.Counter()
|
| 61 |
+
for o in hits:
|
| 62 |
+
sev.update(o.get("severity") or {})
|
| 63 |
+
groups = collections.Counter(o["reason_rescanned"] for o in out)
|
| 64 |
+
|
| 65 |
+
lines = [
|
| 66 |
+
f"- Re-sampled: **{len(out)}** datasets ({groups['wrong-config']} on the wrong "
|
| 67 |
+
f"config, {groups['zero-fields']} with zero fields read); "
|
| 68 |
+
f"{len(out) - len(ok)} could not be read this time.",
|
| 69 |
+
f"- Read now: **{sum(o['text_fields'] for o in ok):,}** text fields, of which "
|
| 70 |
+
f"**{sum(o['arabic_fields'] for o in ok):,}** contain Arabic letters.",
|
| 71 |
+
f"- Datasets with any finding: **{len(hits)}**"
|
| 72 |
+
+ (f" — spans by severity: {dict(sev)}" if hits else "") + ".",
|
| 73 |
+
]
|
| 74 |
+
for o in hits:
|
| 75 |
+
lines.append(f" - `{o['dataset']}` ({o['config']}): {o['fields_corrupted']}/"
|
| 76 |
+
f"{o['text_fields']} fields, worst severity "
|
| 77 |
+
f"{max(o['severity'], key=lambda s: ['stray', 'partial', 'reshaped'].index(s)) if o.get('severity') else 'n/a'}")
|
| 78 |
+
still_zero = [o["dataset"] for o in ok if o["text_fields"] == 0]
|
| 79 |
+
if still_zero:
|
| 80 |
+
lines.append(f"- Still no text fields (audio, images or non-text data): "
|
| 81 |
+
+ ", ".join(f"`{d}`" for d in still_zero) + ".")
|
| 82 |
+
(HERE / "rescan_summary.md").write_text("\n".join(lines) + "\n", encoding="utf-8")
|
| 83 |
+
print("\n" + "\n".join(lines))
|
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- Re-sampled: **39** datasets (18 on the wrong config, 21 with zero fields read); 4 could not be read this time.
|
| 2 |
+
- Read now: **526,366** text fields, of which **440,918** contain Arabic letters.
|
| 3 |
+
- Datasets with any finding: **3** — spans by severity: {'reshaped': 6926, 'partial': 4846, 'stray': 1873}.
|
| 4 |
+
- `HPLT/DocHPLT` (ar-en): 7/13100 fields, worst severity reshaped
|
| 5 |
+
- `HuggingFaceFW/finepdfs-edu` (arb_Arab): 11/4310 fields, worst severity reshaped
|
| 6 |
+
- `allenai/c4` (ar): 3/300 fields, worst severity stray
|
| 7 |
+
- Still no text fields (audio, images or non-text data): `heshamelmahdi/egyptian-arabic-orpheus-tokenized`.
|
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"dataset": "ApexVOrteX-1/egyptian-arabic-style-dataset", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 659, "arabic_fields": 219, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 2 |
+
{"dataset": "CohereLabs/Global-MMLU", "config": "ar", "split": "test", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 1600, "arabic_fields": 358, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "am", "previous_text_fields": 1600, "previous_fields_with_findings": 0}
|
| 3 |
+
{"dataset": "CohereLabs/include-base-44", "config": "Arabic", "split": "test", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 1100, "arabic_fields": 495, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "Albanian", "previous_text_fields": 1000, "previous_fields_with_findings": 0}
|
| 4 |
+
{"dataset": "CohereLabs/xP3x", "config": "acm_Arab", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 700, "arabic_fields": 100, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "ace_Arab", "previous_text_fields": 700, "previous_fields_with_findings": 0}
|
| 5 |
+
{"dataset": "Davlan/sib200", "config": "acm_Arab", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 100, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "ace_Arab", "previous_text_fields": 200, "previous_fields_with_findings": 0}
|
| 6 |
+
{"dataset": "Falah/classification_arabic_dialects", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 7 |
+
{"dataset": "HPLT/DocHPLT", "config": "ar-en", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 13100, "arabic_fields": 2319, "fields_corrupted": 7, "spans": 16, "severity": {"reshaped": 4, "partial": 6, "stray": 6}, "example": "ﻟﻌﻘﺪ ﺍﻟﺘﺴﻭﻴﺔ ﺍﻟﻘﻀﺎﺌﻴﺔ ﺃﻭ ﺍﻟﺘﺼﻔﻴﺔ ﺍﻟﻘﻀﺎﺌﻴﺔ ﻟﻠﻌﻀﻭ ﺍﻟﻤﻜﻠﻑ ﺒﺎﻟﻤﻘ", "pct": 0.05, "reason_rescanned": "wrong-config", "previous_config": "af-en", "previous_text_fields": 300, "previous_fields_with_findings": 0}
|
| 8 |
+
{"dataset": "HPLT/HPLT2.0_cleaned", "config": "ara_Arab", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 5029, "arabic_fields": 100, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "ace_Arab", "previous_text_fields": 144, "previous_fields_with_findings": 0}
|
| 9 |
+
{"dataset": "Helsinki-NLP/opus-100", "config": "ar-de", "split": "test", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 100, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "af-en", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 10 |
+
{"dataset": "HuggingFaceFW/finepdfs-edu", "config": "arb_Arab", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 4310, "arabic_fields": 100, "fields_corrupted": 11, "spans": 13620, "severity": {"reshaped": 6922, "stray": 1858, "partial": 4840}, "example": "ﻜﻨﻴﺴﺔ ﺍﻟﺴﻴﺩﺓ ﺍﻟﻌﺫﺭﺍﺀ ﺒﺎﻟﻔﺠﺎﻟﺔ", "pct": 0.26, "reason_rescanned": "wrong-config", "previous_config": "eng_Latn", "previous_text_fields": 1000, "previous_fields_with_findings": 0}
|
| 11 |
+
{"dataset": "HumynLabs/Arabic_Documents_Dataset_PDF", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 12 |
+
{"dataset": "MBZUAI/ArabicMMLU", "config": "Arabic Language (General)", "split": "test", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 992, "arabic_fields": 592, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "Accounting (University)", "previous_text_fields": 774, "previous_fields_with_findings": 0}
|
| 13 |
+
{"dataset": "Nooh/arabic-asr-audio", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 14 |
+
{"dataset": "allenai/c4", "config": "ar", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 300, "arabic_fields": 100, "fields_corrupted": 3, "spans": 9, "severity": {"stray": 9}, "example": "ﭙ", "pct": 1.0, "reason_rescanned": "wrong-config", "previous_config": "af", "previous_text_fields": 300, "previous_fields_with_findings": 0}
|
| 15 |
+
{"dataset": "bigscience/xP3all", "config": "ar", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 141, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "ak", "previous_text_fields": 200, "previous_fields_with_findings": 0}
|
| 16 |
+
{"dataset": "bigscience/xP3mt", "config": "ar", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 149, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "ak", "previous_text_fields": 200, "previous_fields_with_findings": 0}
|
| 17 |
+
{"dataset": "cloudaocr/arabic-synthetic-scanned-books", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 18 |
+
{"dataset": "craneset/arabic-ocr", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 8, "text_fields": 8, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 19 |
+
{"dataset": "disco-eth/WorldSpeech", "config": "ar_bh", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 1000, "arabic_fields": 200, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "ca_fr", "previous_text_fields": 800, "previous_fields_with_findings": 0}
|
| 20 |
+
{"dataset": "emadjumaah/mishkat-quran-audio", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 21 |
+
{"dataset": "facebook/xnli", "config": "ar", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 200, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "all_languages", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 22 |
+
{"dataset": "gagan3012/arabic-news-clustering-p2p", "error": "TypeError: Failed to fetch", "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 23 |
+
{"dataset": "gsarti/flores_101", "config": "ara", "split": "dev", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 399, "arabic_fields": 100, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "afr", "previous_text_fields": 399, "previous_fields_with_findings": 0}
|
| 24 |
+
{"dataset": "heshamelmahdi/egyptian-arabic-orpheus-tokenized", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 0, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 25 |
+
{"dataset": "kokojake/lmsys_egyptian_arabic_convs", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 736, "arabic_fields": 347, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 26 |
+
{"dataset": "kokojake/oasst2_egyptian_arabic_convs", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 2256, "arabic_fields": 1112, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 27 |
+
{"dataset": "melsiddieg/qari-arabic-ocr-10k", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 500, "arabic_fields": 100, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 28 |
+
{"dataset": "mustaphaelkady/arabic-ocr-books", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 500, "arabic_fields": 100, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 29 |
+
{"dataset": "occiglot/tokenizer-wiki-bench", "config": "ar", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 487296, "arabic_fields": 433050, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "af", "previous_text_fields": 400, "previous_fields_with_findings": 0}
|
| 30 |
+
{"dataset": "quranlab/hadith", "error": "HTTPError: HTTP Error 500", "reason_rescanned": "wrong-config", "previous_config": "index", "previous_text_fields": 500, "previous_fields_with_findings": 0}
|
| 31 |
+
{"dataset": "quranlab/quran-audio", "config": "hani-ar-rifai", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 1300, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "manifest", "previous_text_fields": 900, "previous_fields_with_findings": 0}
|
| 32 |
+
{"dataset": "saleh-c4/arabic-ocr-images", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 100, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 33 |
+
{"dataset": "sarulab-speech/yodas2_sidon", "error": "HTTPError: HTTP Error 500", "reason_rescanned": "wrong-config", "previous_config": "aa000", "previous_text_fields": 92, "previous_fields_with_findings": 0}
|
| 34 |
+
{"dataset": "tamm5y5m5/quran_nemotron_dual_v5_npl", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 35 |
+
{"dataset": "unimelb-nlp/wikiann", "config": "ar", "split": "test", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 1481, "arabic_fields": 640, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "ace", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 36 |
+
{"dataset": "wikimedia/wikipedia", "config": "20231101.ar", "split": "train", "config_rule": "arabic-config", "rows_sampled": 100, "text_fields": 400, "arabic_fields": 196, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "wrong-config", "previous_config": "20231101.ab", "previous_text_fields": 399, "previous_fields_with_findings": 0}
|
| 37 |
+
{"dataset": "zaibihassan/Quranic-Recitation-Data", "error": "HTTPError: HTTP Error 501", "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 38 |
+
{"dataset": "zaibihassan/Quranic-Translation-Audio-Data", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
| 39 |
+
{"dataset": "zaibihassan/Quranic-Word-By-Word-Audio-Data", "config": "default", "split": "train", "config_rule": "single-config", "rows_sampled": 100, "text_fields": 200, "arabic_fields": 0, "fields_corrupted": 0, "spans": 0, "severity": null, "example": null, "pct": 0.0, "reason_rescanned": "zero-fields", "previous_config": "default", "previous_text_fields": 0, "previous_fields_with_findings": 0}
|
|
@@ -1,68 +1,148 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
-
"""Audit public Arabic datasets for
|
| 3 |
|
| 4 |
-
|
| 5 |
-
Arabic corpora, and the reshape+bidi recipe silently writes presentation-form,
|
| 6 |
-
visually-ordered Arabic into files. Where that happened upstream of a dataset, every
|
| 7 |
-
model trained or scored on it is learning from text no Arabic reader would accept.
|
| 8 |
|
| 9 |
Method: pull rows through the HF datasets-server (no full download), run the same
|
| 10 |
-
detector that ships in arabic-lint, and report the share of
|
| 11 |
-
not exhaustive, and the sample size is reported with every number.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
"""
|
| 13 |
-
import json, sys, urllib.parse, urllib.request
|
| 14 |
|
| 15 |
-
sys.path.insert(0, "/tmp/al2/src")
|
| 16 |
from arabic_lint.detect import scan_text
|
| 17 |
|
| 18 |
API = "https://datasets-server.huggingface.co"
|
| 19 |
-
UA = {"User-Agent": "arabic-lint-audit/1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
def get(path, **params):
|
| 23 |
url = f"{API}/{path}?" + urllib.parse.urlencode(params)
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
def first_split(dataset):
|
|
|
|
| 32 |
d = get("splits", dataset=dataset)
|
| 33 |
if "__error__" in d or not d.get("splits"):
|
| 34 |
return None, None, d.get("__error__", "no splits")
|
| 35 |
-
for s in d["splits"]:
|
| 36 |
if s["split"] in ("train", "test"):
|
| 37 |
return s["config"], s["split"], None
|
| 38 |
s = d["splits"][0]
|
| 39 |
return s["config"], s["split"], None
|
| 40 |
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
def audit(dataset, n=100):
|
| 43 |
-
config, split, err =
|
| 44 |
if err:
|
| 45 |
return {"dataset": dataset, "error": err}
|
| 46 |
rows = get("rows", dataset=dataset, config=config, split=split, offset=0, length=n)
|
| 47 |
if "__error__" in rows or "rows" not in rows:
|
| 48 |
return {"dataset": dataset, "error": rows.get("__error__") or str(rows)[:120]}
|
| 49 |
|
| 50 |
-
total = bad = spans = 0
|
|
|
|
| 51 |
worst = None
|
| 52 |
for r in rows["rows"]:
|
| 53 |
-
for v in r.get("row", {})
|
| 54 |
-
if not isinstance(v, str) or not v.strip():
|
| 55 |
-
continue
|
| 56 |
total += 1
|
|
|
|
|
|
|
| 57 |
rep = scan_text(v)
|
| 58 |
if rep.findings:
|
| 59 |
bad += 1
|
| 60 |
spans += len(rep.findings)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
if worst is None:
|
| 62 |
worst = rep.findings[0].text[:60]
|
| 63 |
-
return {"dataset": dataset, "config": config, "split": split,
|
| 64 |
"rows_sampled": len(rows["rows"]), "text_fields": total,
|
| 65 |
-
"
|
|
|
|
| 66 |
"pct": round(100 * bad / total, 2) if total else 0.0}
|
| 67 |
|
| 68 |
|
|
@@ -75,7 +155,8 @@ if __name__ == "__main__":
|
|
| 75 |
if "error" in r:
|
| 76 |
print(f" {t:52} ERROR {r['error'][:60]}")
|
| 77 |
else:
|
| 78 |
-
flag = " <--
|
| 79 |
print(f" {t:52} {r['fields_corrupted']:>4}/{r['text_fields']:<5} fields "
|
| 80 |
-
f"({r['pct']:>5}%)
|
|
|
|
| 81 |
json.dump(out, open("audit.json", "w"), ensure_ascii=False, indent=2)
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
+
"""Audit public Arabic datasets for presentation forms stored in their text.
|
| 3 |
|
| 4 |
+
Author: Syamjith NK
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
Method: pull rows through the HF datasets-server (no full download), run the same
|
| 7 |
+
detector that ships in arabic-lint, and report the share of text fields affected.
|
| 8 |
+
Sampled, not exhaustive, and the sample size is reported with every number.
|
| 9 |
+
|
| 10 |
+
pip install arabic-lint
|
| 11 |
+
python scan_hf.py MBZUAI/ArabicMMLU
|
| 12 |
+
|
| 13 |
+
Corrected 2026-10-27:
|
| 14 |
+
|
| 15 |
+
- Config choice. The September run took the first config with a `train` or `test`
|
| 16 |
+
split. For a multilingual corpus that is usually an alphabetically early,
|
| 17 |
+
non-Arabic config, so `allenai/c4` was sampled as Afrikaans and
|
| 18 |
+
`wikimedia/wikipedia` as Abkhaz. `choose_split` now prefers a config whose name
|
| 19 |
+
carries an Arabic language code, and records which rule it used.
|
| 20 |
+
- Nested text. Only top-level string columns were read, so datasets that keep their
|
| 21 |
+
text in lists or records (conversations, translation pairs, token lists)
|
| 22 |
+
contributed zero fields. `_strings` now walks lists and dicts.
|
| 23 |
+
- Arabic content. `arabic_fields` counts the fields that contain at least one Arabic
|
| 24 |
+
letter, so a sample in the wrong language is visible in the output.
|
| 25 |
+
- The detector is imported from the installed package rather than a scratch path.
|
| 26 |
+
|
| 27 |
+
`first_split` is kept unchanged because it is what produced `results.jsonl`.
|
| 28 |
"""
|
| 29 |
+
import json, re, sys, time, urllib.parse, urllib.request
|
| 30 |
|
|
|
|
| 31 |
from arabic_lint.detect import scan_text
|
| 32 |
|
| 33 |
API = "https://datasets-server.huggingface.co"
|
| 34 |
+
UA = {"User-Agent": "arabic-lint-audit/1.1"}
|
| 35 |
+
|
| 36 |
+
# ISO 639 codes for Arabic and its varieties as they appear in config names
|
| 37 |
+
# ("ar", "ar_EG", "arb_Arab", "acm_Arab", "xquad.ar", "20231101.ar", "ar-en").
|
| 38 |
+
# "ace_Arab" is Acehnese written in Arabic script, so it deliberately does not match.
|
| 39 |
+
ARABIC_CODES = {
|
| 40 |
+
"ar", "ara", "arb", "arz", "ary", "arq", "aeb", "apc", "ajp", "acm", "acq", "acw",
|
| 41 |
+
"acx", "adf", "aec", "afb", "ars", "ayl", "ayp", "ayh", "abv", "shu", "ssh", "pga",
|
| 42 |
+
"arabic",
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def is_arabic_config(name: str) -> bool:
|
| 47 |
+
for tok in re.split(r"[^A-Za-z0-9]+", name or ""):
|
| 48 |
+
t = tok.lower()
|
| 49 |
+
if t in ARABIC_CODES or re.fullmatch(r"ar\d+", t):
|
| 50 |
+
return True
|
| 51 |
+
return False
|
| 52 |
|
| 53 |
|
| 54 |
def get(path, **params):
|
| 55 |
url = f"{API}/{path}?" + urllib.parse.urlencode(params)
|
| 56 |
+
for attempt in range(3):
|
| 57 |
+
try:
|
| 58 |
+
with urllib.request.urlopen(urllib.request.Request(url, headers=UA), timeout=60) as r:
|
| 59 |
+
return json.load(r)
|
| 60 |
+
except Exception as exc:
|
| 61 |
+
err = f"{type(exc).__name__}: {exc}"
|
| 62 |
+
if not any(t in err for t in ("429", "500", "502", "Timeout")) or attempt == 2:
|
| 63 |
+
return {"__error__": err}
|
| 64 |
+
time.sleep(4 * (attempt + 1))
|
| 65 |
|
| 66 |
|
| 67 |
def first_split(dataset):
|
| 68 |
+
"""The September 2026 rule. Kept for the record; do not use for new scans."""
|
| 69 |
d = get("splits", dataset=dataset)
|
| 70 |
if "__error__" in d or not d.get("splits"):
|
| 71 |
return None, None, d.get("__error__", "no splits")
|
| 72 |
+
for s in d["splits"]:
|
| 73 |
if s["split"] in ("train", "test"):
|
| 74 |
return s["config"], s["split"], None
|
| 75 |
s = d["splits"][0]
|
| 76 |
return s["config"], s["split"], None
|
| 77 |
|
| 78 |
|
| 79 |
+
def choose_split(dataset):
|
| 80 |
+
"""Return (config, split, rule, error). Prefer an Arabic-coded config."""
|
| 81 |
+
d = get("splits", dataset=dataset)
|
| 82 |
+
if "__error__" in d or not d.get("splits"):
|
| 83 |
+
return None, None, None, d.get("__error__", "no splits")
|
| 84 |
+
splits = d["splits"]
|
| 85 |
+
configs = {s["config"] for s in splits}
|
| 86 |
+
arabic = [s for s in splits if is_arabic_config(s["config"])]
|
| 87 |
+
if arabic:
|
| 88 |
+
pool, rule = arabic, "arabic-config"
|
| 89 |
+
elif len(configs) == 1:
|
| 90 |
+
pool, rule = splits, "single-config"
|
| 91 |
+
else:
|
| 92 |
+
pool, rule = splits, "no-arabic-config-name"
|
| 93 |
+
for s in pool:
|
| 94 |
+
if s["split"] in ("train", "test"):
|
| 95 |
+
return s["config"], s["split"], rule, None
|
| 96 |
+
s = pool[0]
|
| 97 |
+
return s["config"], s["split"], rule, None
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def _strings(v):
|
| 101 |
+
"""Every non-empty string inside a row value, including in lists and records."""
|
| 102 |
+
if isinstance(v, str):
|
| 103 |
+
if v.strip():
|
| 104 |
+
yield v
|
| 105 |
+
elif isinstance(v, dict):
|
| 106 |
+
for x in v.values():
|
| 107 |
+
yield from _strings(x)
|
| 108 |
+
elif isinstance(v, list):
|
| 109 |
+
for x in v:
|
| 110 |
+
yield from _strings(x)
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
_ARABIC_LETTER = re.compile(r"[ء-ي]")
|
| 114 |
+
|
| 115 |
+
|
| 116 |
def audit(dataset, n=100):
|
| 117 |
+
config, split, rule, err = choose_split(dataset)
|
| 118 |
if err:
|
| 119 |
return {"dataset": dataset, "error": err}
|
| 120 |
rows = get("rows", dataset=dataset, config=config, split=split, offset=0, length=n)
|
| 121 |
if "__error__" in rows or "rows" not in rows:
|
| 122 |
return {"dataset": dataset, "error": rows.get("__error__") or str(rows)[:120]}
|
| 123 |
|
| 124 |
+
total = arabic = bad = spans = 0
|
| 125 |
+
severity = {}
|
| 126 |
worst = None
|
| 127 |
for r in rows["rows"]:
|
| 128 |
+
for v in _strings(r.get("row", {})):
|
|
|
|
|
|
|
| 129 |
total += 1
|
| 130 |
+
if _ARABIC_LETTER.search(v):
|
| 131 |
+
arabic += 1
|
| 132 |
rep = scan_text(v)
|
| 133 |
if rep.findings:
|
| 134 |
bad += 1
|
| 135 |
spans += len(rep.findings)
|
| 136 |
+
for f in rep.findings:
|
| 137 |
+
sev = getattr(f, "severity", None)
|
| 138 |
+
if sev:
|
| 139 |
+
severity[sev] = severity.get(sev, 0) + 1
|
| 140 |
if worst is None:
|
| 141 |
worst = rep.findings[0].text[:60]
|
| 142 |
+
return {"dataset": dataset, "config": config, "split": split, "config_rule": rule,
|
| 143 |
"rows_sampled": len(rows["rows"]), "text_fields": total,
|
| 144 |
+
"arabic_fields": arabic, "fields_corrupted": bad, "spans": spans,
|
| 145 |
+
"severity": severity or None, "example": worst,
|
| 146 |
"pct": round(100 * bad / total, 2) if total else 0.0}
|
| 147 |
|
| 148 |
|
|
|
|
| 155 |
if "error" in r:
|
| 156 |
print(f" {t:52} ERROR {r['error'][:60]}")
|
| 157 |
else:
|
| 158 |
+
flag = " <-- FINDINGS" if r["fields_corrupted"] else ""
|
| 159 |
print(f" {t:52} {r['fields_corrupted']:>4}/{r['text_fields']:<5} fields "
|
| 160 |
+
f"({r['pct']:>5}%), {r['arabic_fields']} Arabic, config "
|
| 161 |
+
f"{r['config']} [{r['config_rule']}]{flag}")
|
| 162 |
json.dump(out, open("audit.json", "w"), ensure_ascii=False, indent=2)
|
|
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"2A2I/Arabic_Aya",
|
| 3 |
+
"Abdelkareem/Arabic-article-summarization-30-000",
|
| 4 |
+
"Abdelkareem/arabic-article-summarization",
|
| 5 |
+
"Abdelkareem/arabic-bbc-news",
|
| 6 |
+
"Abdelkareem/arabic_summarization_text",
|
| 7 |
+
"Abdelkareem/rwkv_Alpaca_arabic_instruct_version",
|
| 8 |
+
"Abdelkareem/simple-benchmark-arabic-summarization",
|
| 9 |
+
"Abdelkareem/wikihow-arabic-summarization",
|
| 10 |
+
"Abdelrahman-Rezk/Arabic_Dialect_Identification",
|
| 11 |
+
"Abdelrahman2922/Egyptian-Arabic-synthetic-stt",
|
| 12 |
+
"AdhamAshraf/egyptian-2-arabic",
|
| 13 |
+
"AhmadHakami/saudipedia-arabic-qa",
|
| 14 |
+
"AhmedBoin/Arabic-ASR",
|
| 15 |
+
"AhmedBou/Arabic_instruction_dataset_for_llm_ft",
|
| 16 |
+
"AhmedBou/MMMLU_arabic_law_Instruct",
|
| 17 |
+
"AhmedBou/MMMLU_arabic_medicine_Instruct",
|
| 18 |
+
"AhmedGaber77/ArabicNews",
|
| 19 |
+
"AhmedTaha012/arabic_text_yolov8_V0.5",
|
| 20 |
+
"Amineyyyhh/Arabic_Sentiment_Twitter_Corpus",
|
| 21 |
+
"Amr-khaled/Egyptian-Arabic_English_V1",
|
| 22 |
+
"ApexVOrteX-1/egyptian-arabic-style-dataset",
|
| 23 |
+
"ArabicNewsAnalyzer/Topic-Modeling-Checkpoints",
|
| 24 |
+
"ArabicSpeech/ArA-DF-2026",
|
| 25 |
+
"AuthenticIlm/Shamela4_Full_DB",
|
| 26 |
+
"Ayham7addad/Arabic_Formal_Economic_News_Jordan",
|
| 27 |
+
"Bisher/SadeedDiac-25_predictions_train_run-qwen2.5-1.5b-instruct-arabic-diacritization-moaaz-fadel_10k",
|
| 28 |
+
"BounharAbdelaziz/Arabic-Synthetic-Summarization-Dataset",
|
| 29 |
+
"BounharAbdelaziz/Arabic-Synthetic-Summarization-Dataset-Filtered",
|
| 30 |
+
"Buraaq/quran-md-ayahs",
|
| 31 |
+
"CNTXTAI0/arabic_dialects_question_and_answer",
|
| 32 |
+
"Chiplunkar/MMMLU_arabic_law_Instruct",
|
| 33 |
+
"ClusterlabAi/101_billion_arabic_words_dataset",
|
| 34 |
+
"CohereLabs/Global-MMLU",
|
| 35 |
+
"CohereLabs/Global-MMLU-Lite",
|
| 36 |
+
"CohereLabs/include-base-44",
|
| 37 |
+
"CohereLabs/xP3x",
|
| 38 |
+
"Davlan/sib200",
|
| 39 |
+
"Dr-AliGomaa/ar-quran-hadith14books-MSA",
|
| 40 |
+
"DrAbdulmalek/arabic-medical-ocr-corrections",
|
| 41 |
+
"Elfsong/Arabic_Dialect_DPO",
|
| 42 |
+
"Falah/classification_arabic_dialects",
|
| 43 |
+
"FaresElmenshawi/quran-recitations-asr",
|
| 44 |
+
"Fatimah8Moheeb/Arabic-Poetry-Dataset",
|
| 45 |
+
"FatimahEmadEldin/Gutenberg-Arabic-OCR-HTML-Pages",
|
| 46 |
+
"FatimahEmadEldin/alsanaa-emirati-arabic-asr",
|
| 47 |
+
"FatimahEmadEldin/deepseek-ocr-arabic-v1",
|
| 48 |
+
"FreedomIntelligence/Evol-Instruct-Arabic-GPT4",
|
| 49 |
+
"FreedomIntelligence/MMLU_Arabic",
|
| 50 |
+
"FreedomIntelligence/evol-instruct-arabic",
|
| 51 |
+
"GEM/wiki_lingua",
|
| 52 |
+
"GEM/xlsum",
|
| 53 |
+
"Gheras/Financial_Reasoning_QA_Arabic_Dataset",
|
| 54 |
+
"Gheras/Financial_Reasoning_QA_Arabic_Dataset_V2",
|
| 55 |
+
"GoAGI-AI/STEM_arabic_qa_1k",
|
| 56 |
+
"HPLT/DocHPLT",
|
| 57 |
+
"HPLT/HPLT2.0_cleaned",
|
| 58 |
+
"Haneen84/Arabic_news",
|
| 59 |
+
"Haneen84/Arabic_news_articles_Brexit",
|
| 60 |
+
"HaoElshazly/quran_data",
|
| 61 |
+
"HebArabNlpProject/ArabicSentimentDataSet",
|
| 62 |
+
"Helsinki-NLP/opus-100",
|
| 63 |
+
"HeshamHaroon/Arabic_fake_news_dataset",
|
| 64 |
+
"HeshamHaroon/QA_Arabic",
|
| 65 |
+
"HeshamHaroon/arabic-dialect-dpo",
|
| 66 |
+
"HeshamHaroon/arabic-turath-ocr",
|
| 67 |
+
"HuggingFaceFW/finepdfs-edu",
|
| 68 |
+
"HumynLabs/Arabic_Documents_Dataset_PDF",
|
| 69 |
+
"ISLAM-PO/arabic-history-and-dialects",
|
| 70 |
+
"ISLAM-PO/documents-Egyptian-Arabic",
|
| 71 |
+
"IbrahimAmin/egyptian-arabic-fake-reviews",
|
| 72 |
+
"IbrahimAmin/egyptian-arabic-hate-speech",
|
| 73 |
+
"IbrahimSalah/The_Arabic_News_speech_Corpus_Dataset",
|
| 74 |
+
"Iftoo95/Arabic_Sentiment_and_Topics",
|
| 75 |
+
"ImranzamanML/Arabic-Sentiments",
|
| 76 |
+
"InfoBayAI/Arabic-Non-STEM-QA-MCQ-Dataset",
|
| 77 |
+
"InfoBayAI/Arabic-STEM-QA-MCQ-Dataset",
|
| 78 |
+
"JayanthMuthu/arabic-ocr",
|
| 79 |
+
"KFUPM-JRCAI/arabic-acoustic-poetry-benchmark",
|
| 80 |
+
"KFUPM-JRCAI/arabic_dialects_dataset_experimental",
|
| 81 |
+
"Kamyar-zeinalipour/Arabic-Clue-Instruct",
|
| 82 |
+
"Kamyar-zeinalipour/arabic_multi_dialect_dialogue",
|
| 83 |
+
"Khaledtelbahnasy/egyptian-arabic-stt-data",
|
| 84 |
+
"LHF/escorpius-mr",
|
| 85 |
+
"M-A-D/Mixed-Arabic-Datasets-Repo",
|
| 86 |
+
"MBZUAI/ArabicMMLU",
|
| 87 |
+
"MBZUAI/Dialectal-Arabic-MMLU",
|
| 88 |
+
"MBZUAI/human_translated_arabic_mmlu",
|
| 89 |
+
"Madu786/Arabic_Sentiment_Dataset",
|
| 90 |
+
"Madu786/multilingual-urdu-romanurdu-arabic-english-sentiment",
|
| 91 |
+
"Mo-Abdalkader/Egyptian-Arabic-English-Parallel-Corpus",
|
| 92 |
+
"Mohamed-Sami/arabic-instruction-fine-tuning-prep",
|
| 93 |
+
"MohamedRashad/MASC-Arabic",
|
| 94 |
+
"MohamedRashad/arabic-books",
|
| 95 |
+
"MohamedRashad/arabic-img2md",
|
| 96 |
+
"MohammedNasser/Arabic_Reasoning_Instruct_QA",
|
| 97 |
+
"Monda/arabic_poetry",
|
| 98 |
+
"MustafaIbrahim/50k-Arabic-QA",
|
| 99 |
+
"MustafaIbrahim/medical-arabic-qa",
|
| 100 |
+
"Nahla-yasmine/arabic_fake_news",
|
| 101 |
+
"NajahUniv/arabic-univeristy-chatbot-qa",
|
| 102 |
+
"NightPrince/islamic-arabic-qa",
|
| 103 |
+
"Nooh/arabic-asr-audio",
|
| 104 |
+
"OALL/AlGhafa-Arabic-LLM-Benchmark-Native",
|
| 105 |
+
"OALL/Arabic_EXAMS",
|
| 106 |
+
"OALL/details_CohereForAI__c4ai-command-r7b-arabic-02-2025_v2",
|
| 107 |
+
"OALL/details_deep-analysis-research__D2IL-Arabic-Qwen2.5-72B-Instruct-v0.1_v2",
|
| 108 |
+
"OALL/details_deep-analysis-research__D2IL-Arabic-Qwen2.5-72B-Instruct-v0.1_v2_alrage",
|
| 109 |
+
"OALL/details_deep-analysis-research__D2IL-Arabic-Qwen2.5-72B-Instruct-v0.2_v2",
|
| 110 |
+
"OALL/details_deep-analysis-research__D2IL-Arabic-Qwen2.5-72B-Instruct-v0.2_v2_alrage",
|
| 111 |
+
"OALL/details_tunny__Arabic_Qwen2.5_72B_instruct_finetune_0.1_v2",
|
| 112 |
+
"Omar-youssef/English-Egyptian-Arabic-Translation",
|
| 113 |
+
"Omar-youssef/English-Egyptian-Arabic-Translation-Pairs",
|
| 114 |
+
"Omar-youssef/arabic-ocr-markdown-dataset",
|
| 115 |
+
"Omar-youssef/arabic-ocrr-dataset",
|
| 116 |
+
"Omar-youssef/islamic-qa-egyptian-arabic",
|
| 117 |
+
"Omartificial-Intelligence-Space/FineWeb2-Egyptian-Arabic",
|
| 118 |
+
"OpenAssistant/oasst1",
|
| 119 |
+
"OpenAssistant/oasst2",
|
| 120 |
+
"PRAli22/Arabic_dialects_to_MSA",
|
| 121 |
+
"Pangeanic/Iraqi-Arabic-multidomain-QA-text",
|
| 122 |
+
"PleIAs/common_corpus",
|
| 123 |
+
"PoetryMTEB/ArabicPoetryMeterClassification",
|
| 124 |
+
"PoetryMTEB/ArabicPoetryPeriodsClassification",
|
| 125 |
+
"PoetryMTEB/ArabicPoetryThemeClustering",
|
| 126 |
+
"QCRI/ImageEval-ArabicNLP26",
|
| 127 |
+
"QCRI/arabic_pos_dialect",
|
| 128 |
+
"Qanadil/ASTD_Arabic_Sentiment_Tweets_Dataset",
|
| 129 |
+
"Qanadil/ArSAS_An_Arabic_Speech-Act_and_Sentiment_Corpus_of_Tweets",
|
| 130 |
+
"Quran-Lab/QuranTTS",
|
| 131 |
+
"Quran-Lab/quran-tajweed-phonetics",
|
| 132 |
+
"RASHID778/arabic-instruct-curated",
|
| 133 |
+
"Rabe3/egyptian-arabic-tts-diacritized",
|
| 134 |
+
"ReejaNoor/arabic-food-asr-dataset",
|
| 135 |
+
"Sabri12blm/Arabic-Quran-ASR-dataset",
|
| 136 |
+
"Sadique5/arabic_quranic_asr",
|
| 137 |
+
"Sadique5/openslr_quranic_asr",
|
| 138 |
+
"SahmBenchmark/arabic-financial-qa_eval",
|
| 139 |
+
"SahmBenchmark/arabic-financial-qa_train",
|
| 140 |
+
"SaiedAlshahrani/Egyptian_Arabic_Wikipedia_20230101",
|
| 141 |
+
"Salama1429/tarteel-ai-everyayah-Quran",
|
| 142 |
+
"Salesteq/arabic-dialect-text",
|
| 143 |
+
"Salesteq/arabic-dialects-gold20",
|
| 144 |
+
"Salesteq/arabic-dialects-gold20-code-switch",
|
| 145 |
+
"Shabdobhedi/MMMLU_arabic_law_Instruct",
|
| 146 |
+
"Shabdobhedi/MMMLU_arabic_law_Instruct_New",
|
| 147 |
+
"Shaer-AI-2/shaer-eval-raw-gpt2-medium-arabic-poetry",
|
| 148 |
+
"Shaer-AI-2/shaer-eval-raw-gpt2-small-arabic-poetry",
|
| 149 |
+
"Skiittoo/aljazeera-news-arabic",
|
| 150 |
+
"SultanR/fineweb-edu-arabic",
|
| 151 |
+
"TheRealOKAI/arabic-ocr-datasetv3",
|
| 152 |
+
"TheRealOKAI/arabic_ocr_merged_dataset",
|
| 153 |
+
"TigreGotico/arabic-stem-lexicon",
|
| 154 |
+
"Umartoyin/Accented_arabic-asr-dataset",
|
| 155 |
+
"Umartoyin/arabic-asr-dataset",
|
| 156 |
+
"Unimatch-Ai/arabic_chartqa_qa_pseudo_v1",
|
| 157 |
+
"Walid-Ahmed/arabic_news",
|
| 158 |
+
"Yahya-Mohamed/egyptian-arabic-speech-dataset",
|
| 159 |
+
"Yasbok/Alpaca_arabic_instruct",
|
| 160 |
+
"Yousefmd/arabic_ocr_dataset",
|
| 161 |
+
"YoussefAnwar/Arabic-news",
|
| 162 |
+
"aallail/arabic_ocr_synth_2",
|
| 163 |
+
"aallail/arabic_ocr_synth_3",
|
| 164 |
+
"abdalrahmanshahrour/autotrain-data-auto-arabic-summarization",
|
| 165 |
+
"abdo1819/arabic-english-code-switching-synthetic-asr",
|
| 166 |
+
"abzoo/arabic-names-synthetic-ocr",
|
| 167 |
+
"ahishamm/QURANICWhisperDataset",
|
| 168 |
+
"ahmed220v/arabic_quranic_asr",
|
| 169 |
+
"ahmedafareed/Syl_arabicnewscorpus",
|
| 170 |
+
"ahmedafareed/arabicnewscorpus",
|
| 171 |
+
"ahmedafareed/emb_Syl_Class_arabicnewscorpus",
|
| 172 |
+
"ahmedheakl/arabic_arabicocr",
|
| 173 |
+
"ahmedheakl/arocrbench_arabicocr",
|
| 174 |
+
"akbargherbal/six_millions_instruction_dataset_for_arabic_llm_ft",
|
| 175 |
+
"alalfi/arabic-summarization",
|
| 176 |
+
"alalfi/arabic-summarization02",
|
| 177 |
+
"alexandrainst/m_arc",
|
| 178 |
+
"alexandrainst/m_hellaswag",
|
| 179 |
+
"alhasanmuhammad/Translated_Egyptian_Arabic_Lectures",
|
| 180 |
+
"allenai/c4",
|
| 181 |
+
"amgadhasan/arabic_tweets_dialects",
|
| 182 |
+
"aminedjebbie/Multi-Arabic-dialects",
|
| 183 |
+
"ammarthabet/egyptian-arabic-speech",
|
| 184 |
+
"arbml/Arabic_Dialects_Dataset",
|
| 185 |
+
"arbml/Arabic_News",
|
| 186 |
+
"arbml/Arabic_News_Tweets",
|
| 187 |
+
"arbml/Arabic_Sentiment_Twitter_Corpus",
|
| 188 |
+
"arbml/ultimate_arabic_news",
|
| 189 |
+
"arsaporta/symile-m3",
|
| 190 |
+
"artur-muratov/multilingual-speech-commands-15lang",
|
| 191 |
+
"asas-ai/Arabic-article-summarization",
|
| 192 |
+
"asas-ai/Arabic_Sentiment_Twitter_Corpus",
|
| 193 |
+
"badrex/MADIS5-spoken-arabic-dialects",
|
| 194 |
+
"bigscience/xP3",
|
| 195 |
+
"bigscience/xP3all",
|
| 196 |
+
"bigscience/xP3mt",
|
| 197 |
+
"bobez999/arabic-qa-dataset-sigir2024",
|
| 198 |
+
"cloudaocr/arabic-synthetic-scanned-books",
|
| 199 |
+
"craneset/arabic-ocr",
|
| 200 |
+
"dataflare/arabic-dialect-corpus",
|
| 201 |
+
"deep-analysis-research/details_D2IL-Arabic-Qwen2.5-72B-Instruct-v0.1",
|
| 202 |
+
"deepdml/Quran_Speech_Dataset",
|
| 203 |
+
"disco-eth/WorldSpeech",
|
| 204 |
+
"dispatchAI/arabic-poetry-instructions",
|
| 205 |
+
"drelhaj/Arabic-Dialects",
|
| 206 |
+
"drelhaj/Arabic-news-and-management-corpus",
|
| 207 |
+
"ebubekr53/organic-egyptian-arabic-dialect-dataset",
|
| 208 |
+
"ebubekr53/organic-gulf-arabic-dialect-dataset",
|
| 209 |
+
"ebubekr53/organic-levantine-arabic-dialect-dataset",
|
| 210 |
+
"ebubekr53/organic-maghrebi-arabic-dialect-dataset",
|
| 211 |
+
"ebubekr53/organic-sudanese-arabic-dialect-dataset",
|
| 212 |
+
"ehabnegm/100-hour-Egyptian-dataset-single-speaker",
|
| 213 |
+
"emadjumaah/mishkat-quran-audio",
|
| 214 |
+
"epfml/FineWeb2-HQ",
|
| 215 |
+
"epfml/FineWeb2-embedded",
|
| 216 |
+
"facebook/belebele",
|
| 217 |
+
"facebook/xnli",
|
| 218 |
+
"fr3on/arabic-dialect-corpus",
|
| 219 |
+
"freococo/ocr_arabic_books",
|
| 220 |
+
"freococo/synth_shamela_ocr_arabic_books",
|
| 221 |
+
"fsicoli/common_voice_15_0",
|
| 222 |
+
"fsicoli/common_voice_17_0",
|
| 223 |
+
"fsicoli/common_voice_22_0",
|
| 224 |
+
"gagan3012/arabic-news-clustering-p2p",
|
| 225 |
+
"geeeezx/egyptian-arabic-400k",
|
| 226 |
+
"gililior/mmlu-prox-eval-predictions",
|
| 227 |
+
"google-research-datasets/tydiqa",
|
| 228 |
+
"google/svq",
|
| 229 |
+
"google/wmt24pp",
|
| 230 |
+
"google/xquad",
|
| 231 |
+
"google/xtreme",
|
| 232 |
+
"gsarti/flores_101",
|
| 233 |
+
"haidermasood99/arabic_quran_asr_final",
|
| 234 |
+
"haidermasood99/quran_asr_final",
|
| 235 |
+
"hajerbchn/MMMLU_arabic_Medicine_Instruct",
|
| 236 |
+
"hajerbchn/MMMLU_arabic_law_Instruct",
|
| 237 |
+
"hajerbchn/arabic-medical-qa",
|
| 238 |
+
"hammoualiyoucef20/quran-audio",
|
| 239 |
+
"hastyle/arabic-manuscript-ocr",
|
| 240 |
+
"herwoww/arabic_xvector_embeddings",
|
| 241 |
+
"heshamelmahdi/egyptian-arabic-orpheus-tokenized",
|
| 242 |
+
"hetchyy/quranic-universal-ayahs",
|
| 243 |
+
"hltcoe/megawika",
|
| 244 |
+
"hmmamalrjoub/arabic-sentiments2",
|
| 245 |
+
"hozifa1/quran_and_sunnah",
|
| 246 |
+
"ieasybooks-org/prophet-mosque-library",
|
| 247 |
+
"ieasybooks-org/shamela-waqfeya-library",
|
| 248 |
+
"ieasybooks-org/waqfeya-library",
|
| 249 |
+
"ilyes25/ASR_arabic",
|
| 250 |
+
"ilyes25/ASR_arabic_modified2",
|
| 251 |
+
"ilyes25/Asr_arabic_modified",
|
| 252 |
+
"insanalamin/quran-terjemahan-indonesia-audio-by-ayah",
|
| 253 |
+
"ismaeeelxd/Egyptian-Arabic-Lectures",
|
| 254 |
+
"josephnashat/ArabicSentimentAnalysis",
|
| 255 |
+
"juletxara/xstory_cloze",
|
| 256 |
+
"kamalamarouche/MMMLU_arabic_law_Instruct",
|
| 257 |
+
"karimraouf/Arabic-Summarization-Dataset-AsDs",
|
| 258 |
+
"khalidalt/ultimate_arabic_news",
|
| 259 |
+
"kokojake/lmsys_egyptian_arabic_convs",
|
| 260 |
+
"kokojake/oasst2_egyptian_arabic_convs",
|
| 261 |
+
"legacy-datasets/common_voice",
|
| 262 |
+
"legacy-datasets/wikipedia",
|
| 263 |
+
"loay/arabic-ocr-synthetic-scans-faker-300k",
|
| 264 |
+
"madilcy/arabic-medical-qa-MERGED-MAQA-MMMLU-MI",
|
| 265 |
+
"mahmoudsaalama/arabic-eou-saudi-dialect",
|
| 266 |
+
"marait123/IBR_MMMLU_arabic_law_Instruct",
|
| 267 |
+
"marait123/IBR_MMMLU_arabic_medicine_Instruct",
|
| 268 |
+
"medmabfc/Arabic_News_Texts_Corpus",
|
| 269 |
+
"medyas/arabic-ocr-printed-500k",
|
| 270 |
+
"melsiddieg/qari-arabic-ocr-10k",
|
| 271 |
+
"mhardalov/exams",
|
| 272 |
+
"michsethowusu/english-egyptian-arabic_sentence-pairs_mt560",
|
| 273 |
+
"miscovery/General_Facts_in_English_Arabic_Egyptian_Arabic",
|
| 274 |
+
"mkay8/arabic_mental_health_QA",
|
| 275 |
+
"mksaad/Arabic_news",
|
| 276 |
+
"moazeldegwy/Arabic-Nutrition-QA",
|
| 277 |
+
"mohajesmaeili/Persian_Arabic_TextLine_Image_Ocr_Medium",
|
| 278 |
+
"mohajesmaeili/Persian_Arabic_TextLine_Image_Ocr_Small",
|
| 279 |
+
"moqarashad/arabic_corpus_international_news",
|
| 280 |
+
"mostafa-rabie/Arabic-ASR-Features",
|
| 281 |
+
"mustaphaelkady/arabic-ocr-books",
|
| 282 |
+
"nabbahi/traditionnals_arabic_shoes_split",
|
| 283 |
+
"nazimali/quran",
|
| 284 |
+
"nehalelkaref/classical_arabic_poetry",
|
| 285 |
+
"niamaelkhbir/Arabic_Dialect_NER",
|
| 286 |
+
"nizarun/Arabic-Poetry-Scansion",
|
| 287 |
+
"occiglot/tokenizer-wiki-bench",
|
| 288 |
+
"oddadmix/Qari-OCR-0.2.2-Arabic-2B_Qari-0.2-eval-tashkil",
|
| 289 |
+
"oddadmix/arabic-audio-collection-algerian-loubna-stories",
|
| 290 |
+
"oddadmix/arabic-news-summarization",
|
| 291 |
+
"oddadmix/dialectal-arabic-lahgtna-v2",
|
| 292 |
+
"oddadmix/egyptian-arabic-english-translation-50k",
|
| 293 |
+
"openai/MMMLU",
|
| 294 |
+
"openfoodfacts/product-database",
|
| 295 |
+
"openlanguagedata/flores_plus",
|
| 296 |
+
"pedramaa/Egyptian-Arabic-Data-LLM",
|
| 297 |
+
"projectqhaiderhabeeb/arabic-letters-asr",
|
| 298 |
+
"pyschopoodle/MMMLU_arabic_medicine_Instruct",
|
| 299 |
+
"qandos0/AFRD_Arabic-Fake-Reviews-Detection",
|
| 300 |
+
"quranlab/hadith",
|
| 301 |
+
"quranlab/quran",
|
| 302 |
+
"quranlab/quran-audio",
|
| 303 |
+
"quranlab/quran-tafsir",
|
| 304 |
+
"rabah2026/Quran-Ayah-Corpus",
|
| 305 |
+
"ramyibrahim/synthetic_egyptian-arabic-tts",
|
| 306 |
+
"rehabyehia/rev3_9463_tv_news_arabic",
|
| 307 |
+
"riotu-lab/ArabicQA_2.1M",
|
| 308 |
+
"sadeem-ai/arabic-qna",
|
| 309 |
+
"sadra-barikbin/crcis-quranic-eval-leaderboard-results_details_mistralai__Mistral-7B-v0.1_private",
|
| 310 |
+
"saeedbark/hadrami-arabic-dialect-dataset",
|
| 311 |
+
"saleh-c4/arabic-ocr-images",
|
| 312 |
+
"saleh-c4/arabic-ocr-labels",
|
| 313 |
+
"sanaa-11/fake-real-arabic-news",
|
| 314 |
+
"sarulab-speech/yodas2_sidon",
|
| 315 |
+
"sedra-hugface/arabic-handwritten-ocr-eval",
|
| 316 |
+
"sepidmnorozy/Arabic_sentiment",
|
| 317 |
+
"sherif1313/Historical-Arabic-Handwritten-OCR",
|
| 318 |
+
"stanford-oval/ccnews",
|
| 319 |
+
"styletts2-community/multilingual-pl-bert",
|
| 320 |
+
"tahaalselwii/arabic-poetry-verses-and-explanations",
|
| 321 |
+
"tahaio/arabicpoetry",
|
| 322 |
+
"tamm5y5m5/quran_nemotron_dual_v5_npl",
|
| 323 |
+
"tarekys5/Arabic_Healthcare_QA",
|
| 324 |
+
"thethanksforthegod/quran-asr-mega-corpus",
|
| 325 |
+
"tiiuae/Falcon-Arabic-7B-Instruct-details",
|
| 326 |
+
"unimelb-nlp/wikiann",
|
| 327 |
+
"unohamza/Arabic-news-daily",
|
| 328 |
+
"uonlp/CulturaX",
|
| 329 |
+
"wala0404/ARABIC-NEWS",
|
| 330 |
+
"wikimedia/wikipedia",
|
| 331 |
+
"wissamantoun/qasr-arabic-speech-continuations",
|
| 332 |
+
"xtz999/egyptian_arabic_speech_zaid",
|
| 333 |
+
"yallashoot/arabic-fan-sentiment",
|
| 334 |
+
"yallashoot/arabic-transfer-news",
|
| 335 |
+
"yrrhall/arabic-dialect-corpus",
|
| 336 |
+
"zafro77/Arabic-Sentiments",
|
| 337 |
+
"zaibihassan/Quranic-Recitation-Data",
|
| 338 |
+
"zaibihassan/Quranic-Translation-Audio-Data",
|
| 339 |
+
"zaibihassan/Quranic-Word-By-Word-Audio-Data",
|
| 340 |
+
"zainulhakim/Arabic_ASR",
|
| 341 |
+
"zainulhakim/Stella20_Arabic_ASR",
|
| 342 |
+
"zainulhakim/Stella_Arabic_ASR"
|
| 343 |
+
]
|