Update README.md
Browse files# **Text with Diacritics Correction Dataset**
[](https://huggingface.co/datasets/FlouBsy/Text-with-Diacritics-Correction)
## **Overview**
This dataset is an **Arabic dataset** derived from [Abdou/arabic-tashkeel-dataset](https://huggingface.co/datasets/Abdou/arabic-tashkeel-dataset), with additional **preprocessing and error injection** to help train models for **speech and typing correction**.
### **Key Features**
✅ **Preprocessed Arabic text**: Cleaned `vocalized` column by removing non-Arabic characters, symbols, emojis, brackets, and numbers.
✅ **Injected realistic errors**: Includes four types of errors that simulate real-world **speech and typing mistakes**.
✅ **Large-scale dataset**: Over **1.5 million** text samples for robust training.
✅ **Suitable for NLP tasks**: Useful for **text correction, speech recognition, and Arabic NLP research**.
---
## **Dataset Details**
### **Statistics**
| Split | Samples |
|------------|---------:|
| Train | 1,463,790 |
| Validation | 30,181 |
| Test | 15,091 |
| **Total** | **1,509,062** |
### **Data Format**
- **File Type**: Parquet
- **Columns**:
- `vocalized`: Preprocessed Arabic text
- `erroneous`: The same text with injected errors
---
## **Error Injection Details**
We introduced **four types of common Arabic text errors** to enhance the dataset’s usability for speech and typing correction:
1. **Keyboard Errors** 🖥️
- Mistyped letters based on nearby keyboard keys.
- Example: `السلام` → `الستام` (minor keyboard slip).
2. **Ordering Errors** 🔀
- Swapped adjacent letters.
- Example: `مرحبا` → `مرحاب` (common typing mistake).
3. **Phonetic Errors** 🎙️
- Replaced letters with phonetically similar ones.
- Example: `ن` ↔ `م`, `س` ↔ `ث`.
4. **Diacritic Errors** ٍّ ُٰ
- Altered or removed Arabic diacritics (`Tashkeel`).
- Example: `كَتَبَ` → `كَتُبَ`.
These errors mimic **real-world mistakes** in **speech recognition and Arabic typing**, improving model robustness.
---
## **Usage**
### **Loading the Dataset in Python**
```python
from datasets import load_dataset
dataset = load_dataset("FlouBsy/Text-with-Diacritics-Correction")
# Example access
print(dataset['train'][0]) # Show first sample
## Contributors
- **[Basma M.](https://huggingface.co/FlouBsy)** (Main Contributor)
- **[Selsabeel A.](https://huggingface.co/TheirUsernameHere)**
## Citations
@misc
{arabic_tashkeel_dataset,
author = {[Original Dataset Author](https://huggingface.co/Abdou)},
title = {Arabic Tashkeel Dataset},
year = {2024},
url = {https://huggingface.co/datasets/Abdou/arabic-tashkeel-dataset}
}
@misc
{Text-with-Diacritics-Correction,
author = {Basma M., Selsabeel A.},
title = {Arabic Speech & Typing Errors with Diacritics Dataset},
year = {2025},
url = {https://huggingface.co/datasets/FlouBsy/Text-with-Diacritics-Correction}
}
## License
This dataset is licensed under the MIT License.
See the [LICENSE](https://huggingface.co/datasets/FlouBsy/Text-with-Diacritics-Correction/blob/main/LICENSE) file for more details.
@@ -1,29 +1,40 @@
|
|
1 |
-
---
|
2 |
-
dataset_info:
|
3 |
-
features:
|
4 |
-
- name: vocalized
|
5 |
-
dtype: string
|
6 |
-
- name: erroneous
|
7 |
-
dtype: string
|
8 |
-
splits:
|
9 |
-
- name: train
|
10 |
-
num_bytes: 4494954114
|
11 |
-
num_examples: 1463790
|
12 |
-
- name: valid
|
13 |
-
num_bytes: 93033856
|
14 |
-
num_examples: 30181
|
15 |
-
- name: test
|
16 |
-
num_bytes: 46297886
|
17 |
-
num_examples: 15091
|
18 |
-
download_size: 2248412824
|
19 |
-
dataset_size: 4634285856
|
20 |
-
configs:
|
21 |
-
- config_name: default
|
22 |
-
data_files:
|
23 |
-
- split: train
|
24 |
-
path: data/train-*
|
25 |
-
- split: valid
|
26 |
-
path: data/valid-*
|
27 |
-
- split: test
|
28 |
-
path: data/test-*
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
dataset_info:
|
3 |
+
features:
|
4 |
+
- name: vocalized
|
5 |
+
dtype: string
|
6 |
+
- name: erroneous
|
7 |
+
dtype: string
|
8 |
+
splits:
|
9 |
+
- name: train
|
10 |
+
num_bytes: 4494954114
|
11 |
+
num_examples: 1463790
|
12 |
+
- name: valid
|
13 |
+
num_bytes: 93033856
|
14 |
+
num_examples: 30181
|
15 |
+
- name: test
|
16 |
+
num_bytes: 46297886
|
17 |
+
num_examples: 15091
|
18 |
+
download_size: 2248412824
|
19 |
+
dataset_size: 4634285856
|
20 |
+
configs:
|
21 |
+
- config_name: default
|
22 |
+
data_files:
|
23 |
+
- split: train
|
24 |
+
path: data/train-*
|
25 |
+
- split: valid
|
26 |
+
path: data/valid-*
|
27 |
+
- split: test
|
28 |
+
path: data/test-*
|
29 |
+
license: mit
|
30 |
+
task_categories:
|
31 |
+
- text2text-generation
|
32 |
+
language:
|
33 |
+
- ar
|
34 |
+
tags:
|
35 |
+
- Speech-Correction
|
36 |
+
- Diacritics
|
37 |
+
- Vocalized
|
38 |
+
- Arabic
|
39 |
+
- Tashkeel
|
40 |
+
---
|