MadLook commited on
Commit
68be921
·
verified ·
1 Parent(s): 38de5eb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +163 -40
README.md CHANGED
@@ -1,40 +1,163 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: audio
5
- dtype:
6
- audio:
7
- sampling_rate: 16000
8
- - name: sentence
9
- dtype: string
10
- splits:
11
- - name: train
12
- num_bytes: 15358706439
13
- num_examples: 94587
14
- - name: validation
15
- num_bytes: 853288011
16
- num_examples: 5255
17
- - name: test
18
- num_bytes: 853288447
19
- num_examples: 5255
20
- download_size: 16777443696
21
- dataset_size: 17065282897
22
- configs:
23
- - config_name: default
24
- data_files:
25
- - split: train
26
- path: data/train-*
27
- - split: validation
28
- path: data/validation-*
29
- - split: test
30
- path: data/test-*
31
- language:
32
- - ar
33
- tags:
34
- - STT
35
- - Wisper
36
- - EGY_DATASET
37
- - Finetuning
38
- size_categories:
39
- - 100K<n<1M
40
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ar
4
+ task_categories:
5
+ - automatic-speech-recognition
6
+ tags:
7
+ - whisper
8
+ - arabic
9
+ - dialect
10
+ - speech
11
+ - asr
12
+ pretty_name: Arabic Whisper Multi-Dialect Dataset
13
+ size_categories:
14
+ - 100K<n<1M
15
+ ---
16
+
17
+ # Arabic Whisper Multi-Dialect ASR Dataset
18
+
19
+ A comprehensive multi-dialect Arabic speech recognition dataset prepared for Whisper model fine-tuning.
20
+
21
+ ## Dataset Description
22
+
23
+ This dataset combines high-quality Arabic speech data from multiple dialects, specifically curated for fine-tuning OpenAI's Whisper models on Arabic speech recognition tasks.
24
+
25
+ ### Dialects Included
26
+
27
+ - **Modern Standard Arabic (MSA)** - Formal Arabic used in media and formal contexts
28
+ - **Egyptian Arabic (EGY)** - The most widely understood Arabic dialect
29
+ - **Gulf Arabic (GULF)** - Arabic dialects from the Gulf region
30
+
31
+ ### Dataset Statistics
32
+
33
+ - **Total Samples**: ~105,000 audio-text pairs
34
+ - **Train Split**: ~94,500 samples (90%)
35
+ - **Validation Split**: ~5,250 samples (5%)
36
+ - **Test Split**: ~5,250 samples (5%)
37
+ - **Audio Format**: 16kHz, mono
38
+ - **Text**: Normalized Arabic script
39
+
40
+ ### Source Datasets
41
+
42
+ This dataset is a combination of the following sources:
43
+
44
+ 1. **MightyStudent/Egyptian-ASR-MGB-3** - Egyptian dialect broadcast data
45
+ 2. **MAdel121/arabic-egy-cleaned** - Cleaned Egyptian Arabic speech
46
+ 3. **Nourhann/filtered_common_voices_16khz** - Modern Standard Arabic
47
+ 4. **badrex/arabic-speech-SADA22-Khaliji** - Gulf dialect speech (30% sample)
48
+
49
+ ## Dataset Structure
50
+ ```python
51
+ DatasetDict({
52
+ train: Dataset({
53
+ features: ['audio', 'sentence'],
54
+ num_rows: ~94500
55
+ })
56
+ validation: Dataset({
57
+ features: ['audio', 'sentence'],
58
+ num_rows: ~5250
59
+ })
60
+ test: Dataset({
61
+ features: ['audio', 'sentence'],
62
+ num_rows: ~5250
63
+ })
64
+ })
65
+ ```
66
+
67
+ ### Data Fields
68
+
69
+ - `audio`: Audio file (16kHz sampling rate)
70
+ - `sentence`: Transcription text in Arabic
71
+ - `dialect`: Dialect label ('msa', 'egy', or 'gulf')
72
+
73
+ ## Usage
74
+
75
+ ### Loading the Dataset
76
+ ```python
77
+ from datasets import load_dataset
78
+
79
+ dataset = load_dataset("MadLook/arabic-whisper-multidialect")
80
+
81
+ print(dataset)
82
+ # Access splits
83
+ train_data = dataset['train']
84
+ val_data = dataset['validation']
85
+ test_data = dataset['test']
86
+ ```
87
+
88
+ ### Fine-tuning Whisper
89
+ ```python
90
+ from transformers import WhisperProcessor, WhisperForConditionalGeneration
91
+
92
+ # Load model and processor
93
+ processor = WhisperProcessor.from_pretrained("openai/whisper-small", language="Arabic", task="transcribe")
94
+ model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-small")
95
+
96
+ # Prepare dataset
97
+ def prepare_dataset(batch):
98
+ audio = batch["audio"]
99
+ batch["input_features"] = processor.feature_extractor(audio["array"], sampling_rate=audio["sampling_rate"]).input_features[0]
100
+ batch["labels"] = processor.tokenizer(batch["sentence"]).input_ids
101
+ return batch
102
+
103
+ dataset = dataset.map(prepare_dataset)
104
+
105
+ # Continue with training...
106
+ ```
107
+
108
+ ## Data Processing
109
+
110
+ The dataset has been processed with the following steps:
111
+
112
+ 1. **Audio normalization**: All audio resampled to 16kHz mono
113
+ 2. **Text normalization**: Arabic text normalized (diacritics removed, Alef forms unified)
114
+ 3. **Dialect balancing**: Datasets sampled to ensure balanced representation
115
+ 4. **Quality filtering**: Low-quality samples removed
116
+ 5. **Train/Val/Test split**: 90/5/5 split with shuffling
117
+
118
+ ## Intended Use
119
+
120
+ ### Primary Use Cases
121
+
122
+ - Fine-tuning Whisper models for Arabic ASR
123
+ - Multi-dialect Arabic speech recognition research
124
+ - Arabic speech technology development
125
+ - Dialect-aware speech recognition systems
126
+
127
+ ### Considerations
128
+
129
+ - This dataset combines multiple dialects; consider dialect-specific fine-tuning if needed
130
+ - Text is normalized and may not preserve dialectal spelling variations
131
+ - Dataset is balanced across dialects but individual dialect performance may vary
132
+
133
+ ## Limitations
134
+
135
+ - Gulf dialect representation is lower (30% of original dataset)
136
+ - No code-switching samples included
137
+ - Limited to broadcast and read speech domains
138
+ - May not generalize well to conversational or noisy speech
139
+
140
+ ## Citation
141
+
142
+ If you use this dataset, please cite the original source datasets:
143
+ ```bibtex
144
+ @dataset{arabic_whisper_multidialect,
145
+ title={Arabic Whisper Multi-Dialect Dataset},
146
+ author={MadLook},
147
+ year={2025},
148
+ publisher={Hugging Face},
149
+ howpublished={\url{https://huggingface.co/datasets/MadLook/arabic-whisper-multidialect}}
150
+ }
151
+ ```
152
+
153
+ ## License
154
+
155
+ This dataset combines data from multiple sources. Please refer to the original datasets for their respective licenses:
156
+ - MightyStudent/Egyptian-ASR-MGB-3
157
+ - MAdel121/arabic-egy-cleaned
158
+ - Nourhann/filtered_common_voices_16khz
159
+ - badrex/arabic-speech-SADA22-Khaliji
160
+
161
+ ## Acknowledgments
162
+
163
+ This dataset builds upon the excellent work of the Arabic NLP and speech recognition community. Special thanks to the creators of the source datasets for making their data publicly available.