Datasets:
Commit
•
fd8469c
1
Parent(s):
d89f6a5
Update parquet files
Browse files- README.md +0 -322
- common_language.py +0 -174
- dataset_infos.json +0 -1
- full/common_language-test-00000-of-00002.parquet +3 -0
- full/common_language-test-00001-of-00002.parquet +3 -0
- full/common_language-train-00000-of-00007.parquet +3 -0
- full/common_language-train-00001-of-00007.parquet +3 -0
- full/common_language-train-00002-of-00007.parquet +3 -0
- full/common_language-train-00003-of-00007.parquet +3 -0
- full/common_language-train-00004-of-00007.parquet +3 -0
- full/common_language-train-00005-of-00007.parquet +3 -0
- full/common_language-train-00006-of-00007.parquet +3 -0
- full/common_language-validation-00000-of-00002.parquet +3 -0
- full/common_language-validation-00001-of-00002.parquet +3 -0
README.md
DELETED
@@ -1,322 +0,0 @@
|
|
1 |
-
---
|
2 |
-
pretty_name: Common Language
|
3 |
-
annotations_creators:
|
4 |
-
- crowdsourced
|
5 |
-
language_creators:
|
6 |
-
- crowdsourced
|
7 |
-
language:
|
8 |
-
- ar
|
9 |
-
- br
|
10 |
-
- ca
|
11 |
-
- cnh
|
12 |
-
- cs
|
13 |
-
- cv
|
14 |
-
- cy
|
15 |
-
- de
|
16 |
-
- dv
|
17 |
-
- el
|
18 |
-
- en
|
19 |
-
- eo
|
20 |
-
- es
|
21 |
-
- et
|
22 |
-
- eu
|
23 |
-
- fa
|
24 |
-
- fr
|
25 |
-
- fy
|
26 |
-
- ia
|
27 |
-
- id
|
28 |
-
- it
|
29 |
-
- ja
|
30 |
-
- ka
|
31 |
-
- kab
|
32 |
-
- ky
|
33 |
-
- lv
|
34 |
-
- mn
|
35 |
-
- mt
|
36 |
-
- nl
|
37 |
-
- pl
|
38 |
-
- pt
|
39 |
-
- rm
|
40 |
-
- ro
|
41 |
-
- ru
|
42 |
-
- rw
|
43 |
-
- sah
|
44 |
-
- sl
|
45 |
-
- sv
|
46 |
-
- ta
|
47 |
-
- tr
|
48 |
-
- tt
|
49 |
-
- uk
|
50 |
-
- zh
|
51 |
-
language_bcp47:
|
52 |
-
- fy-NL
|
53 |
-
- rm-sursilv
|
54 |
-
- sv-SE
|
55 |
-
- zh-CN
|
56 |
-
- zh-HK
|
57 |
-
- zh-TW
|
58 |
-
license:
|
59 |
-
- cc-by-4.0
|
60 |
-
multilinguality:
|
61 |
-
- multilingual
|
62 |
-
size_categories:
|
63 |
-
- 100K<n<1M
|
64 |
-
source_datasets:
|
65 |
-
- extended|common_voice
|
66 |
-
task_categories:
|
67 |
-
- audio-classification
|
68 |
-
task_ids:
|
69 |
-
- speaker-identification
|
70 |
-
dataset_info:
|
71 |
-
features:
|
72 |
-
- name: client_id
|
73 |
-
dtype: string
|
74 |
-
- name: path
|
75 |
-
dtype: string
|
76 |
-
- name: sentence
|
77 |
-
dtype: string
|
78 |
-
- name: age
|
79 |
-
dtype: string
|
80 |
-
- name: gender
|
81 |
-
dtype: string
|
82 |
-
- name: language
|
83 |
-
dtype:
|
84 |
-
class_label:
|
85 |
-
names:
|
86 |
-
0: Arabic
|
87 |
-
1: Basque
|
88 |
-
2: Breton
|
89 |
-
3: Catalan
|
90 |
-
4: Chinese_China
|
91 |
-
5: Chinese_Hongkong
|
92 |
-
6: Chinese_Taiwan
|
93 |
-
7: Chuvash
|
94 |
-
8: Czech
|
95 |
-
9: Dhivehi
|
96 |
-
10: Dutch
|
97 |
-
11: English
|
98 |
-
12: Esperanto
|
99 |
-
13: Estonian
|
100 |
-
14: French
|
101 |
-
15: Frisian
|
102 |
-
16: Georgian
|
103 |
-
17: German
|
104 |
-
18: Greek
|
105 |
-
19: Hakha_Chin
|
106 |
-
20: Indonesian
|
107 |
-
21: Interlingua
|
108 |
-
22: Italian
|
109 |
-
23: Japanese
|
110 |
-
24: Kabyle
|
111 |
-
25: Kinyarwanda
|
112 |
-
26: Kyrgyz
|
113 |
-
27: Latvian
|
114 |
-
28: Maltese
|
115 |
-
29: Mangolian
|
116 |
-
30: Persian
|
117 |
-
31: Polish
|
118 |
-
32: Portuguese
|
119 |
-
33: Romanian
|
120 |
-
34: Romansh_Sursilvan
|
121 |
-
35: Russian
|
122 |
-
36: Sakha
|
123 |
-
37: Slovenian
|
124 |
-
38: Spanish
|
125 |
-
39: Swedish
|
126 |
-
40: Tamil
|
127 |
-
41: Tatar
|
128 |
-
42: Turkish
|
129 |
-
43: Ukranian
|
130 |
-
44: Welsh
|
131 |
-
config_name: full
|
132 |
-
splits:
|
133 |
-
- name: train
|
134 |
-
num_bytes: 7116761
|
135 |
-
num_examples: 22194
|
136 |
-
- name: validation
|
137 |
-
num_bytes: 1855233
|
138 |
-
num_examples: 5888
|
139 |
-
- name: test
|
140 |
-
num_bytes: 1877970
|
141 |
-
num_examples: 5963
|
142 |
-
download_size: 3761951178
|
143 |
-
dataset_size: 10849964
|
144 |
-
---
|
145 |
-
|
146 |
-
# Dataset Card for common_language
|
147 |
-
|
148 |
-
## Table of Contents
|
149 |
-
- [Dataset Description](#dataset-description)
|
150 |
-
- [Dataset Summary](#dataset-summary)
|
151 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
152 |
-
- [Languages](#languages)
|
153 |
-
- [Dataset Structure](#dataset-structure)
|
154 |
-
- [Data Instances](#data-instances)
|
155 |
-
- [Data Fields](#data-fields)
|
156 |
-
- [Data Splits](#data-splits)
|
157 |
-
- [Dataset Creation](#dataset-creation)
|
158 |
-
- [Curation Rationale](#curation-rationale)
|
159 |
-
- [Source Data](#source-data)
|
160 |
-
- [Annotations](#annotations)
|
161 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
162 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
163 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
164 |
-
- [Discussion of Biases](#discussion-of-biases)
|
165 |
-
- [Other Known Limitations](#other-known-limitations)
|
166 |
-
- [Additional Information](#additional-information)
|
167 |
-
- [Dataset Curators](#dataset-curators)
|
168 |
-
- [Licensing Information](#licensing-information)
|
169 |
-
- [Citation Information](#citation-information)
|
170 |
-
- [Contributions](#contributions)
|
171 |
-
|
172 |
-
## Dataset Description
|
173 |
-
|
174 |
-
- **Homepage:** https://zenodo.org/record/5036977
|
175 |
-
- **Repository:** https://github.com/speechbrain/speechbrain/tree/develop/recipes/CommonLanguage
|
176 |
-
- **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
177 |
-
- **Leaderboard:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
178 |
-
- **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
179 |
-
|
180 |
-
### Dataset Summary
|
181 |
-
|
182 |
-
This dataset is composed of speech recordings from languages that were carefully selected from the CommonVoice database. The total duration of audio recordings is 45.1 hours (i.e., 1 hour of material for each language). The dataset has been extracted from CommonVoice to train language-id systems.
|
183 |
-
|
184 |
-
### Supported Tasks and Leaderboards
|
185 |
-
|
186 |
-
The baselines for language-id are available in the SpeechBrain toolkit (see recipes/CommonLanguage):
|
187 |
-
https://github.com/speechbrain/speechbrain
|
188 |
-
|
189 |
-
### Languages
|
190 |
-
|
191 |
-
List of included languages:
|
192 |
-
```
|
193 |
-
Arabic, Basque, Breton, Catalan, Chinese_China, Chinese_Hongkong, Chinese_Taiwan, Chuvash, Czech, Dhivehi, Dutch, English, Esperanto, Estonian, French, Frisian, Georgian, German, Greek, Hakha_Chin, Indonesian, Interlingua, Italian, Japanese, Kabyle, Kinyarwanda, Kyrgyz, Latvian, Maltese, Mongolian, Persian, Polish, Portuguese, Romanian, Romansh_Sursilvan, Russian, Sakha, Slovenian, Spanish, Swedish, Tamil, Tatar, Turkish, Ukranian, Welsh
|
194 |
-
```
|
195 |
-
|
196 |
-
## Dataset Structure
|
197 |
-
|
198 |
-
### Data Instances
|
199 |
-
|
200 |
-
A typical data point comprises the `path` to the audio file, and its label `language`. Additional fields include `age`, `client_id`, `gender` and `sentence`.
|
201 |
-
|
202 |
-
```python
|
203 |
-
{
|
204 |
-
'client_id': 'itln_trn_sp_175',
|
205 |
-
'path': '/path/common_voice_kpd/Italian/train/itln_trn_sp_175/common_voice_it_18279446.wav',
|
206 |
-
'audio': {'path': '/path/common_voice_kpd/Italian/train/itln_trn_sp_175/common_voice_it_18279446.wav',
|
207 |
-
'array': array([-0.00048828, -0.00018311, -0.00137329, ..., 0.00079346, 0.00091553, 0.00085449], dtype=float32),
|
208 |
-
'sampling_rate': 48000},
|
209 |
-
'sentence': 'Con gli studenti è leggermente simile.',
|
210 |
-
'age': 'not_defined',
|
211 |
-
'gender': 'not_defined',
|
212 |
-
'language': 22
|
213 |
-
}
|
214 |
-
```
|
215 |
-
|
216 |
-
### Data Fields
|
217 |
-
|
218 |
-
`client_id` (`string`): An id for which client (voice) made the recording
|
219 |
-
|
220 |
-
`path` (`string`): The path to the audio file
|
221 |
-
|
222 |
-
- `audio` (`dict`): A dictionary containing the path to the downloaded audio file, the decoded audio array, and the sampling rate. Note that when accessing the audio column: `dataset[0]["audio"]` the audio file is automatically decoded and resampled to `dataset.features["audio"].sampling_rate`. Decoding and resampling of a large number of audio files might take a significant amount of time. Thus it is important to first query the sample index before the `"audio"` column, *i.e.* `dataset[0]["audio"]` should **always** be preferred over `dataset["audio"][0]`.
|
223 |
-
|
224 |
-
`language` (`ClassLabel`): The language of the recording (see the `Languages` section above)
|
225 |
-
|
226 |
-
`sentence` (`string`): The sentence the user was prompted to speak
|
227 |
-
|
228 |
-
`age` (`string`): The age of the speaker.
|
229 |
-
|
230 |
-
`gender` (`string`): The gender of the speaker
|
231 |
-
|
232 |
-
### Data Splits
|
233 |
-
|
234 |
-
The dataset is already balanced and split into train, dev (validation) and test sets.
|
235 |
-
|
236 |
-
| Name | Train | Dev | Test |
|
237 |
-
|:---------------------------------:|:------:|:------:|:-----:|
|
238 |
-
| **# of utterances** | 177552 | 47104 | 47704 |
|
239 |
-
| **# unique speakers** | 11189 | 1297 | 1322 |
|
240 |
-
| **Total duration, hr** | 30.04 | 7.53 | 7.53 |
|
241 |
-
| **Min duration, sec** | 0.86 | 0.98 | 0.89 |
|
242 |
-
| **Mean duration, sec** | 4.87 | 4.61 | 4.55 |
|
243 |
-
| **Max duration, sec** | 21.72 | 105.67 | 29.83 |
|
244 |
-
| **Duration per language, min** | ~40 | ~10 | ~10 |
|
245 |
-
|
246 |
-
## Dataset Creation
|
247 |
-
|
248 |
-
### Curation Rationale
|
249 |
-
|
250 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
251 |
-
|
252 |
-
### Source Data
|
253 |
-
|
254 |
-
#### Initial Data Collection and Normalization
|
255 |
-
|
256 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
257 |
-
|
258 |
-
#### Who are the source language producers?
|
259 |
-
|
260 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
261 |
-
|
262 |
-
### Annotations
|
263 |
-
|
264 |
-
#### Annotation process
|
265 |
-
|
266 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
267 |
-
|
268 |
-
#### Who are the annotators?
|
269 |
-
|
270 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
271 |
-
|
272 |
-
### Personal and Sensitive Information
|
273 |
-
|
274 |
-
The dataset consists of people who have donated their voice online. You agree to not attempt to determine the identity of speakers in the Common Voice dataset.
|
275 |
-
|
276 |
-
## Considerations for Using the Data
|
277 |
-
|
278 |
-
### Social Impact of Dataset
|
279 |
-
|
280 |
-
The dataset consists of people who have donated their voice online. You agree to not attempt to determine the identity of speakers in the Common Voice dataset.
|
281 |
-
|
282 |
-
### Discussion of Biases
|
283 |
-
|
284 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
285 |
-
|
286 |
-
### Other Known Limitations
|
287 |
-
|
288 |
-
The Mongolian and Ukrainian languages are spelled as "Mangolian" and "Ukranian" in this version of the dataset.
|
289 |
-
|
290 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
291 |
-
|
292 |
-
## Additional Information
|
293 |
-
|
294 |
-
### Dataset Curators
|
295 |
-
|
296 |
-
[Ganesh Sinisetty; Pavlo Ruban; Oleksandr Dymov; Mirco Ravanelli](https://zenodo.org/record/5036977#.YdTZ5hPMJ70)
|
297 |
-
|
298 |
-
### Licensing Information
|
299 |
-
|
300 |
-
[Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode)
|
301 |
-
|
302 |
-
### Citation Information
|
303 |
-
|
304 |
-
```
|
305 |
-
@dataset{ganesh_sinisetty_2021_5036977,
|
306 |
-
author = {Ganesh Sinisetty and
|
307 |
-
Pavlo Ruban and
|
308 |
-
Oleksandr Dymov and
|
309 |
-
Mirco Ravanelli},
|
310 |
-
title = {CommonLanguage},
|
311 |
-
month = jun,
|
312 |
-
year = 2021,
|
313 |
-
publisher = {Zenodo},
|
314 |
-
version = {0.1},
|
315 |
-
doi = {10.5281/zenodo.5036977},
|
316 |
-
url = {https://doi.org/10.5281/zenodo.5036977}
|
317 |
-
}
|
318 |
-
```
|
319 |
-
|
320 |
-
### Contributions
|
321 |
-
|
322 |
-
Thanks to [@anton-l](https://github.com/anton-l) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
common_language.py
DELETED
@@ -1,174 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
""" Common Language Dataset"""
|
16 |
-
|
17 |
-
|
18 |
-
import glob
|
19 |
-
import os
|
20 |
-
|
21 |
-
import datasets
|
22 |
-
|
23 |
-
|
24 |
-
_DATA_URL = "https://zenodo.org/record/5036977/files/CommonLanguage.tar.gz?download=1"
|
25 |
-
|
26 |
-
_CITATION = """\
|
27 |
-
@dataset{ganesh_sinisetty_2021_5036977,
|
28 |
-
author = {Ganesh Sinisetty and
|
29 |
-
Pavlo Ruban and
|
30 |
-
Oleksandr Dymov and
|
31 |
-
Mirco Ravanelli},
|
32 |
-
title = {CommonLanguage},
|
33 |
-
month = jun,
|
34 |
-
year = 2021,
|
35 |
-
publisher = {Zenodo},
|
36 |
-
version = {0.1},
|
37 |
-
doi = {10.5281/zenodo.5036977},
|
38 |
-
url = {https://doi.org/10.5281/zenodo.5036977}
|
39 |
-
}
|
40 |
-
"""
|
41 |
-
|
42 |
-
_DESCRIPTION = """\
|
43 |
-
This dataset is composed of speech recordings from languages that were carefully selected from the CommonVoice database.
|
44 |
-
The total duration of audio recordings is 45.1 hours (i.e., 1 hour of material for each language).
|
45 |
-
The dataset has been extracted from CommonVoice to train language-id systems.
|
46 |
-
"""
|
47 |
-
|
48 |
-
_HOMEPAGE = "https://zenodo.org/record/5036977"
|
49 |
-
|
50 |
-
_LICENSE = "https://creativecommons.org/licenses/by/4.0/legalcode"
|
51 |
-
|
52 |
-
_LANGUAGES = [
|
53 |
-
"Arabic",
|
54 |
-
"Basque",
|
55 |
-
"Breton",
|
56 |
-
"Catalan",
|
57 |
-
"Chinese_China",
|
58 |
-
"Chinese_Hongkong",
|
59 |
-
"Chinese_Taiwan",
|
60 |
-
"Chuvash",
|
61 |
-
"Czech",
|
62 |
-
"Dhivehi",
|
63 |
-
"Dutch",
|
64 |
-
"English",
|
65 |
-
"Esperanto",
|
66 |
-
"Estonian",
|
67 |
-
"French",
|
68 |
-
"Frisian",
|
69 |
-
"Georgian",
|
70 |
-
"German",
|
71 |
-
"Greek",
|
72 |
-
"Hakha_Chin",
|
73 |
-
"Indonesian",
|
74 |
-
"Interlingua",
|
75 |
-
"Italian",
|
76 |
-
"Japanese",
|
77 |
-
"Kabyle",
|
78 |
-
"Kinyarwanda",
|
79 |
-
"Kyrgyz",
|
80 |
-
"Latvian",
|
81 |
-
"Maltese",
|
82 |
-
"Mangolian",
|
83 |
-
"Persian",
|
84 |
-
"Polish",
|
85 |
-
"Portuguese",
|
86 |
-
"Romanian",
|
87 |
-
"Romansh_Sursilvan",
|
88 |
-
"Russian",
|
89 |
-
"Sakha",
|
90 |
-
"Slovenian",
|
91 |
-
"Spanish",
|
92 |
-
"Swedish",
|
93 |
-
"Tamil",
|
94 |
-
"Tatar",
|
95 |
-
"Turkish",
|
96 |
-
"Ukranian",
|
97 |
-
"Welsh",
|
98 |
-
]
|
99 |
-
|
100 |
-
|
101 |
-
class CommonLanguage(datasets.GeneratorBasedBuilder):
|
102 |
-
VERSION = datasets.Version("0.1.0")
|
103 |
-
|
104 |
-
BUILDER_CONFIGS = [
|
105 |
-
datasets.BuilderConfig(name="full", version=VERSION, description="The entire Common Language dataset"),
|
106 |
-
]
|
107 |
-
|
108 |
-
def _info(self):
|
109 |
-
features = datasets.Features(
|
110 |
-
{
|
111 |
-
"client_id": datasets.Value("string"),
|
112 |
-
"path": datasets.Value("string"),
|
113 |
-
"audio": datasets.Audio(sampling_rate=48_000),
|
114 |
-
"sentence": datasets.Value("string"),
|
115 |
-
"age": datasets.Value("string"),
|
116 |
-
"gender": datasets.Value("string"),
|
117 |
-
"language": datasets.ClassLabel(names=_LANGUAGES),
|
118 |
-
}
|
119 |
-
)
|
120 |
-
|
121 |
-
return datasets.DatasetInfo(
|
122 |
-
description=_DESCRIPTION,
|
123 |
-
features=features,
|
124 |
-
supervised_keys=None,
|
125 |
-
homepage=_HOMEPAGE,
|
126 |
-
license=_LICENSE,
|
127 |
-
citation=_CITATION,
|
128 |
-
)
|
129 |
-
|
130 |
-
def _split_generators(self, dl_manager):
|
131 |
-
"""Returns SplitGenerators."""
|
132 |
-
|
133 |
-
dl_path = dl_manager.download_and_extract(_DATA_URL)
|
134 |
-
archive_path = os.path.join(dl_path, "common_voice_kpd")
|
135 |
-
|
136 |
-
return [
|
137 |
-
datasets.SplitGenerator(
|
138 |
-
name=datasets.Split.TRAIN,
|
139 |
-
gen_kwargs={"archive_path": archive_path, "split": "train"},
|
140 |
-
),
|
141 |
-
datasets.SplitGenerator(
|
142 |
-
name=datasets.Split.VALIDATION,
|
143 |
-
gen_kwargs={"archive_path": archive_path, "split": "dev"},
|
144 |
-
),
|
145 |
-
datasets.SplitGenerator(
|
146 |
-
name=datasets.Split.TEST,
|
147 |
-
gen_kwargs={"archive_path": archive_path, "split": "test"},
|
148 |
-
),
|
149 |
-
]
|
150 |
-
|
151 |
-
def _generate_examples(self, archive_path, split):
|
152 |
-
"""Yields examples."""
|
153 |
-
|
154 |
-
csv_path_glob = os.path.join(archive_path, "**", f"{split}.csv")
|
155 |
-
|
156 |
-
key = 0
|
157 |
-
for csv_path in sorted(glob.glob(csv_path_glob)):
|
158 |
-
with open(csv_path, encoding="utf-16") as fin:
|
159 |
-
next(fin) # skip the header
|
160 |
-
for line in fin:
|
161 |
-
client_id, wav_name, sentence, age, gender = line.strip().split("\t")[1:]
|
162 |
-
language = csv_path.split(os.sep)[-2]
|
163 |
-
path = os.path.join(os.path.splitext(csv_path)[0], client_id, wav_name)
|
164 |
-
|
165 |
-
yield key, {
|
166 |
-
"client_id": client_id,
|
167 |
-
"path": path,
|
168 |
-
"audio": path,
|
169 |
-
"sentence": sentence,
|
170 |
-
"age": age,
|
171 |
-
"gender": gender,
|
172 |
-
"language": language,
|
173 |
-
}
|
174 |
-
key += 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"full": {"description": "This dataset is composed of speech recordings from languages that were carefully selected from the CommonVoice database.\nThe total duration of audio recordings is 45.1 hours (i.e., 1 hour of material for each language).\nThe dataset has been extracted from CommonVoice to train language-id systems.\n", "citation": "@dataset{ganesh_sinisetty_2021_5036977,\n author = {Ganesh Sinisetty and\n Pavlo Ruban and\n Oleksandr Dymov and\n Mirco Ravanelli},\n title = {CommonLanguage},\n month = jun,\n year = 2021,\n publisher = {Zenodo},\n version = {0.1},\n doi = {10.5281/zenodo.5036977},\n url = {https://doi.org/10.5281/zenodo.5036977}\n}\n", "homepage": "https://zenodo.org/record/5036977", "license": "https://creativecommons.org/licenses/by/4.0/legalcode", "features": {"client_id": {"dtype": "string", "id": null, "_type": "Value"}, "path": {"dtype": "string", "id": null, "_type": "Value"}, "sentence": {"dtype": "string", "id": null, "_type": "Value"}, "age": {"dtype": "string", "id": null, "_type": "Value"}, "gender": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"num_classes": 45, "names": ["Arabic", "Basque", "Breton", "Catalan", "Chinese_China", "Chinese_Hongkong", "Chinese_Taiwan", "Chuvash", "Czech", "Dhivehi", "Dutch", "English", "Esperanto", "Estonian", "French", "Frisian", "Georgian", "German", "Greek", "Hakha_Chin", "Indonesian", "Interlingua", "Italian", "Japanese", "Kabyle", "Kinyarwanda", "Kyrgyz", "Latvian", "Maltese", "Mangolian", "Persian", "Polish", "Portuguese", "Romanian", "Romansh_Sursilvan", "Russian", "Sakha", "Slovenian", "Spanish", "Swedish", "Tamil", "Tatar", "Turkish", "Ukranian", "Welsh"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "common_language", "config_name": "full", "version": {"version_str": "0.1.0", "description": null, "major": 0, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 7116761, "num_examples": 22194, "dataset_name": "common_language"}, "validation": {"name": "validation", "num_bytes": 1855233, "num_examples": 5888, "dataset_name": "common_language"}, "test": {"name": "test", "num_bytes": 1877970, "num_examples": 5963, "dataset_name": "common_language"}}, "download_checksums": {"https://zenodo.org/record/5036977/files/CommonLanguage.tar.gz?download=1": {"num_bytes": 3761951178, "checksum": "94bde611700887527c223363bb1d2a22d0a5b55e0e381c5dc74ad67b06a267d7"}}, "download_size": 3761951178, "post_processing_size": null, "dataset_size": 10849964, "size_in_bytes": 3772801142}}
|
|
|
|
full/common_language-test-00000-of-00002.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:02150d47e73305f7d41345981d82ec582db61a191d80f49198b27b7fda6ee4d6
|
3 |
+
size 466501754
|
full/common_language-test-00001-of-00002.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:12e05b02d8e0b5d4ff78705f063f9b270d9409f109541eed18ee68a415bea806
|
3 |
+
size 323246552
|
full/common_language-train-00000-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8715e388a82cd3bae124e40503f684d7b49e31e68137fb4a25ebbfdbbf0b5c9
|
3 |
+
size 442616794
|
full/common_language-train-00001-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b48d34a73e810595638d10f3cdfaece0b75f3efe6458fa740d2c5ea0d7a7357
|
3 |
+
size 452039863
|
full/common_language-train-00002-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0398da56b4b764e5d2f9d9436cbe52e468fa810ee204b8b7d8295ff04909cc2b
|
3 |
+
size 444825745
|
full/common_language-train-00003-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f14be4603348d14e8427f3e86f205a8f2cc4d3d9906a0037a69e634a2b827307
|
3 |
+
size 463206480
|
full/common_language-train-00004-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:741c73c8364ab9f6ebb7aade592404e2d8a675beeac276510527ba603fbfbac1
|
3 |
+
size 439032284
|
full/common_language-train-00005-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3fc2ec0fd5e4c3b67160fa502413b18405f91fd31644d0ce0db0603372e1c4a0
|
3 |
+
size 462409353
|
full/common_language-train-00006-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:488e79a1dc48720697746ff6d7cbd9148a5dca160024b18c7ed9771c43761859
|
3 |
+
size 387625478
|
full/common_language-validation-00000-of-00002.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9a27d5149f45baee4e72aa27f9d90bf2e532dd98e1c50c78828e12746fc94f10
|
3 |
+
size 454846321
|
full/common_language-validation-00001-of-00002.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be508ad0618b9e2853fdebbbe5e73397613d50bdda1d3e903f2517851b7435d5
|
3 |
+
size 325332306
|