Datasets:
You need to agree to share your Hugging Face information to access this dataset
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
You agree to not use the dataset to conduct experiments that cause harm to human subjects.
Log in or Sign Up to review the conditions and access this dataset content.
- What is this dataset?
- Where does the data come from?
- How do I get access?
- How do I load it?
- Which configs and splits are available?
- What fields does each row have?
- Which languages are included?
- Why are some label codes unusual?
- Is there an official test split?
- Do the noisy configs cover every language?
- Can I evaluate on the noisy configs?
- Can I trust scores for low-resource languages?
- Why do some training rows repeat?
- Is the noise real?
- What kind of text is it, and how well will it transfer?
- What is the license?
- How do I cite it?
- Are there any disclaimers?
PersoArabicLID
What is this dataset?
Language identification data for 19 languages written in Perso-Arabic scripts, including Saraiki (skr), Urdu, Western Punjabi, Sindhi, Pashto and several Kurdish varieties. Its main use is telling apart closely related languages that share one script (for example Saraiki vs Urdu vs Punjabi).
Where does the data come from?
This is a re-packaged copy of the PALI dataset by Ahmadi, Agarwal and Anastasopoulos. Original repository: https://github.com/sinaahmadi/PersoArabicLID. All credit for the data belongs to the original authors; please cite their paper (below).
How do I get access?
Access to this dataset is gated. You must provide information about your intended use and agree to the usage conditions on this page before accessing the data. Once your request is approved, log in with a Hugging Face token (huggingface-cli login) and load the data as shown below.
By requesting access, you agree to:
- not use the dataset to conduct experiments that cause harm to human subjects;
- cite this dataset and the original PALI paper (see the citation section) in any research, publication, model or public project that uses it;
- respect the license terms described in the license section below.
How do I load it?
from datasets import load_dataset
ds = load_dataset("themohal/persoarabic-lid", "merged") # upstream's recommended training mix
print(ds["train"][0])
Which configs and splits are available?
| config | upstream folder | contents |
|---|---|---|
clean |
datasets/0 |
clean text, no synthetic noise |
noisy_20 ... noisy_100 |
datasets/20 ... datasets/100 |
text with 20% to 100% synthetic character noise |
noisy_all |
datasets/all |
the five noisy levels merged |
merged |
datasets/merged |
clean + noisy data, extra clean rows added for Urdu, Persian, Arabic and Uyghur |
| config | split | rows |
|---|---|---|
| clean | train | 118,973 |
| clean | validation | 12,518 |
| noisy_20 | train | 100,200 |
| noisy_40 | train | 100,200 |
| noisy_60 | train | 100,200 |
| noisy_80 | train | 100,200 |
| noisy_100 | train | 100,200 |
| noisy_all | train | 103,201 |
| merged | train | 267,399 |
What fields does each row have?
| field | type | description |
|---|---|---|
text |
string | one sentence or short text |
label |
ClassLabel (19 classes) | language code used by the upstream repository |
language |
string | English language name |
iso639_3 |
string | ISO 639-3 code of the language |
Which languages are included?
| label | language | iso639_3 | clean/train rows | clean/validation rows |
|---|---|---|---|---|
ar |
Arabic | arb |
7,200 | 800 |
azb |
Azeri Turkish (South Azerbaijani) | azb |
7,199 | 801 |
bal |
Balochi | bal |
1,797 | 114 |
brh |
Brahui | brh |
180 | 5 |
ckb |
Central Kurdish (Sorani) | ckb |
7,200 | 800 |
fa |
Persian | fas |
7,200 | 800 |
glk |
Gilaki | glk |
7,198 | 802 |
hac |
Gorani (Hawrami) | hac |
7,193 | 674 |
kas |
Kashmiri | kas |
7,211 | 434 |
ku |
Northern Kurdish (Kurmanji) | kmr |
7,198 | 800 |
mzn |
Mazanderani | mzn |
7,199 | 801 |
pa |
Western Punjabi | pnb |
7,200 | 800 |
ps |
Pashto | pus |
7,200 | 800 |
sd |
Sindhi | snd |
7,200 | 800 |
sdh |
Southern Kurdish | sdh |
7,200 | 800 |
skr |
Saraiki | skr |
7,200 | 800 |
trw |
Torwali | trw |
1,798 | 87 |
ud |
Urdu | urd |
7,200 | 800 |
ug |
Uyghur | uig |
7,200 | 800 |
Why are some label codes unusual?
The label codes are inherited from upstream and are not all standard:
udis Urdu (ISO 639-1 would beur),pais Western Punjabi (pnb), andkuis Northern Kurdish (Kurmanji) in Arabic script.- The upstream README lists both
sdandsdhas Sindhi.sdhcorresponds to the Southern Kurdish corpus (SouthernKurdish_sdh.txtupstream); Sindhi issd. - Use the
iso639_3column when you need an unambiguous code.
Is there an official test split?
No. The upstream repository describes test sets but ships only train.txt files. In clean, a validation split was carved out by this repackaging (10% of the unique sentences per language, seed 42, with all copies removed from train). It is not the paper's test set, so scores are not directly comparable with the paper.
Do the noisy configs cover every language?
No. They cover 15 languages. Arabic (ar), Persian (fa), Urdu (ud) and Uyghur (ug) have no synthetic noise upstream, so they appear only in clean and merged.
Can I evaluate on the noisy configs?
No, they have no eval split. The same sentence appears at several noise levels in noisy_all and merged, so a random split would leak. Evaluate on clean/validation or on your own data.
Can I trust scores for low-resource languages?
Only loosely. Brahui, Torwali and Balochi have very little text, so their validation counts are tiny (see the language table). Do not read much into per-language scores there.
Why do some training rows repeat?
Languages with little text (for example Brahui, Torwali and Balochi) are upsampled upstream, so train contains repeated rows.
Is the noise real?
No. The noisy configs are generated with character-mapping scripts to imitate orthographic variation between related languages. They are not natural text.
What kind of text is it, and how well will it transfer?
The sentences come from corpora such as Wikipedia dumps, which are clean and formal. Expect lower accuracy on informal, social-media or code-mixed text.
What is the license?
The upstream repository is MIT licensed. Some corpora are derived from Wikipedia dumps (the upstream file names carry dump dates), whose text is CC BY-SA. Check the paper and upstream corpora before any commercial reuse. Gating does not change the license.
How do I cite it?
If you use this dataset in research, publications, models or public projects, please cite this repackaged dataset and the original PALI paper.
This dataset (PersoArabicLID, re-packaged copy):
@misc{raza2026persoarabiclid,
title = {PersoArabicLID: A Re-packaged Language Identification Dataset for Perso-Arabic Scripts including Saraiki},
author = {Raza, Muhammad Farjad Ali},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/datasets/themohal/persoarabic-lid}}
}
Original dataset (PALI):
@inproceedings{ahmadi2023pali,
title = "{PALI}: A Language Identification Benchmark for {Perso-Arabic} Scripts",
author = "Ahmadi, Sina and Agarwal, Milind and Anastasopoulos, Antonios",
booktitle = "Proceedings of the 10th Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial)",
month = may,
year = "2023",
address = "Dubrovnik, Croatia",
publisher = "The 17th Conference of the European Chapter of the Association for Computational Linguistics"
}
Are there any disclaimers?
This dataset is provided for research and educational purposes. Users are responsible for ensuring that their use complies with applicable laws, ethical requirements, and the dataset's license and access conditions.
- Downloads last month
- 495