Datasets:
Tasks:
Automatic Speech Recognition
Sub-tasks:
keyword-spotting
Size:
10K<n<100K
ArXiv:
Tags:
speech-recognition
License:
Convert dataset to Parquet
#23
by
mariosasko
- opened
- README.md +820 -18
- cs-CZ/train-00000-of-00001.parquet +3 -0
- de-DE/train-00000-of-00001.parquet +3 -0
- en-AU/train-00000-of-00001.parquet +3 -0
- en-GB/train-00000-of-00001.parquet +3 -0
- en-US/train-00000-of-00001.parquet +3 -0
- es-ES/train-00000-of-00001.parquet +3 -0
- fr-FR/train-00000-of-00001.parquet +3 -0
- it-IT/train-00000-of-00001.parquet +3 -0
- ko-KR/train-00000-of-00001.parquet +3 -0
- minds14.py +0 -172
- nl-NL/train-00000-of-00001.parquet +3 -0
- pl-PL/train-00000-of-00001.parquet +3 -0
- pt-PT/train-00000-of-00001.parquet +3 -0
- ru-RU/train-00000-of-00001.parquet +3 -0
- zh-CN/train-00000-of-00001.parquet +3 -0
README.md
CHANGED
@@ -19,6 +19,19 @@ language:
|
|
19 |
- cs
|
20 |
- ko
|
21 |
- zh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
language_bcp47:
|
23 |
- en
|
24 |
- en-GB
|
@@ -35,19 +48,810 @@ language_bcp47:
|
|
35 |
- cs
|
36 |
- ko
|
37 |
- zh
|
38 |
-
|
39 |
-
-
|
40 |
-
|
41 |
-
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
-
|
48 |
-
|
49 |
-
-
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
"path": "/home/patrick/.cache/huggingface/datasets/downloads/extracted/3ebe2265b2f102203be5e64fa8e533e0c6742e72268772c8ac1834c5a1a921e3/fr-FR~ADDRESS/response_4.wav",
|
105 |
"audio": {
|
106 |
-
"path":
|
107 |
"array": array(
|
108 |
[0.0, 0.0, 0.0, ..., 0.0, 0.00048828, -0.00024414], dtype=float32
|
109 |
),
|
@@ -119,8 +922,7 @@ An example of a datainstance of the config `fr-FR` looks as follows:
|
|
119 |
### Data Fields
|
120 |
The data fields are the same among all splits.
|
121 |
|
122 |
-
- **
|
123 |
-
- **audio** (dict): Audio object including loaded audio array, sampling rate and path ot audio
|
124 |
- **transcription** (str): Transcription of the audio file
|
125 |
- **english_transcription** (str): English transcription of the audio file
|
126 |
- **intent_class** (int): Class id of intent
|
|
|
19 |
- cs
|
20 |
- ko
|
21 |
- zh
|
22 |
+
license:
|
23 |
+
- cc-by-4.0
|
24 |
+
multilinguality:
|
25 |
+
- multilingual
|
26 |
+
size_categories:
|
27 |
+
- 10K<n<100K
|
28 |
+
task_categories:
|
29 |
+
- automatic-speech-recognition
|
30 |
+
- speech-processing
|
31 |
+
task_ids:
|
32 |
+
- speech-recognition
|
33 |
+
- keyword-spotting
|
34 |
+
pretty_name: MInDS-14
|
35 |
language_bcp47:
|
36 |
- en
|
37 |
- en-GB
|
|
|
48 |
- cs
|
49 |
- ko
|
50 |
- zh
|
51 |
+
dataset_info:
|
52 |
+
- config_name: cs-CZ
|
53 |
+
features:
|
54 |
+
- name: audio
|
55 |
+
dtype:
|
56 |
+
audio:
|
57 |
+
sampling_rate: 8000
|
58 |
+
- name: transcription
|
59 |
+
dtype: string
|
60 |
+
- name: english_transcription
|
61 |
+
dtype: string
|
62 |
+
- name: intent_class
|
63 |
+
dtype:
|
64 |
+
class_label:
|
65 |
+
names:
|
66 |
+
'0': abroad
|
67 |
+
'1': address
|
68 |
+
'2': app_error
|
69 |
+
'3': atm_limit
|
70 |
+
'4': balance
|
71 |
+
'5': business_loan
|
72 |
+
'6': card_issues
|
73 |
+
'7': cash_deposit
|
74 |
+
'8': direct_debit
|
75 |
+
'9': freeze
|
76 |
+
'10': high_value_payment
|
77 |
+
'11': joint_account
|
78 |
+
'12': latest_transactions
|
79 |
+
'13': pay_bill
|
80 |
+
- name: lang_id
|
81 |
+
dtype:
|
82 |
+
class_label:
|
83 |
+
names:
|
84 |
+
'0': cs-CZ
|
85 |
+
'1': de-DE
|
86 |
+
'2': en-AU
|
87 |
+
'3': en-GB
|
88 |
+
'4': en-US
|
89 |
+
'5': es-ES
|
90 |
+
'6': fr-FR
|
91 |
+
'7': it-IT
|
92 |
+
'8': ko-KR
|
93 |
+
'9': nl-NL
|
94 |
+
'10': pl-PL
|
95 |
+
'11': pt-PT
|
96 |
+
'12': ru-RU
|
97 |
+
'13': zh-CN
|
98 |
+
splits:
|
99 |
+
- name: train
|
100 |
+
num_bytes: 40348448.0
|
101 |
+
num_examples: 574
|
102 |
+
download_size: 36473252
|
103 |
+
dataset_size: 40348448.0
|
104 |
+
- config_name: de-DE
|
105 |
+
features:
|
106 |
+
- name: audio
|
107 |
+
dtype:
|
108 |
+
audio:
|
109 |
+
sampling_rate: 8000
|
110 |
+
- name: transcription
|
111 |
+
dtype: string
|
112 |
+
- name: english_transcription
|
113 |
+
dtype: string
|
114 |
+
- name: intent_class
|
115 |
+
dtype:
|
116 |
+
class_label:
|
117 |
+
names:
|
118 |
+
'0': abroad
|
119 |
+
'1': address
|
120 |
+
'2': app_error
|
121 |
+
'3': atm_limit
|
122 |
+
'4': balance
|
123 |
+
'5': business_loan
|
124 |
+
'6': card_issues
|
125 |
+
'7': cash_deposit
|
126 |
+
'8': direct_debit
|
127 |
+
'9': freeze
|
128 |
+
'10': high_value_payment
|
129 |
+
'11': joint_account
|
130 |
+
'12': latest_transactions
|
131 |
+
'13': pay_bill
|
132 |
+
- name: lang_id
|
133 |
+
dtype:
|
134 |
+
class_label:
|
135 |
+
names:
|
136 |
+
'0': cs-CZ
|
137 |
+
'1': de-DE
|
138 |
+
'2': en-AU
|
139 |
+
'3': en-GB
|
140 |
+
'4': en-US
|
141 |
+
'5': es-ES
|
142 |
+
'6': fr-FR
|
143 |
+
'7': it-IT
|
144 |
+
'8': ko-KR
|
145 |
+
'9': nl-NL
|
146 |
+
'10': pl-PL
|
147 |
+
'11': pt-PT
|
148 |
+
'12': ru-RU
|
149 |
+
'13': zh-CN
|
150 |
+
splits:
|
151 |
+
- name: train
|
152 |
+
num_bytes: 53416129.0
|
153 |
+
num_examples: 611
|
154 |
+
download_size: 41061320
|
155 |
+
dataset_size: 53416129.0
|
156 |
+
- config_name: en-AU
|
157 |
+
features:
|
158 |
+
- name: audio
|
159 |
+
dtype:
|
160 |
+
audio:
|
161 |
+
sampling_rate: 8000
|
162 |
+
- name: transcription
|
163 |
+
dtype: string
|
164 |
+
- name: english_transcription
|
165 |
+
dtype: string
|
166 |
+
- name: intent_class
|
167 |
+
dtype:
|
168 |
+
class_label:
|
169 |
+
names:
|
170 |
+
'0': abroad
|
171 |
+
'1': address
|
172 |
+
'2': app_error
|
173 |
+
'3': atm_limit
|
174 |
+
'4': balance
|
175 |
+
'5': business_loan
|
176 |
+
'6': card_issues
|
177 |
+
'7': cash_deposit
|
178 |
+
'8': direct_debit
|
179 |
+
'9': freeze
|
180 |
+
'10': high_value_payment
|
181 |
+
'11': joint_account
|
182 |
+
'12': latest_transactions
|
183 |
+
'13': pay_bill
|
184 |
+
- name: lang_id
|
185 |
+
dtype:
|
186 |
+
class_label:
|
187 |
+
names:
|
188 |
+
'0': cs-CZ
|
189 |
+
'1': de-DE
|
190 |
+
'2': en-AU
|
191 |
+
'3': en-GB
|
192 |
+
'4': en-US
|
193 |
+
'5': es-ES
|
194 |
+
'6': fr-FR
|
195 |
+
'7': it-IT
|
196 |
+
'8': ko-KR
|
197 |
+
'9': nl-NL
|
198 |
+
'10': pl-PL
|
199 |
+
'11': pt-PT
|
200 |
+
'12': ru-RU
|
201 |
+
'13': zh-CN
|
202 |
+
splits:
|
203 |
+
- name: train
|
204 |
+
num_bytes: 44128508.0
|
205 |
+
num_examples: 654
|
206 |
+
download_size: 37345603
|
207 |
+
dataset_size: 44128508.0
|
208 |
+
- config_name: en-GB
|
209 |
+
features:
|
210 |
+
- name: audio
|
211 |
+
dtype:
|
212 |
+
audio:
|
213 |
+
sampling_rate: 8000
|
214 |
+
- name: transcription
|
215 |
+
dtype: string
|
216 |
+
- name: english_transcription
|
217 |
+
dtype: string
|
218 |
+
- name: intent_class
|
219 |
+
dtype:
|
220 |
+
class_label:
|
221 |
+
names:
|
222 |
+
'0': abroad
|
223 |
+
'1': address
|
224 |
+
'2': app_error
|
225 |
+
'3': atm_limit
|
226 |
+
'4': balance
|
227 |
+
'5': business_loan
|
228 |
+
'6': card_issues
|
229 |
+
'7': cash_deposit
|
230 |
+
'8': direct_debit
|
231 |
+
'9': freeze
|
232 |
+
'10': high_value_payment
|
233 |
+
'11': joint_account
|
234 |
+
'12': latest_transactions
|
235 |
+
'13': pay_bill
|
236 |
+
- name: lang_id
|
237 |
+
dtype:
|
238 |
+
class_label:
|
239 |
+
names:
|
240 |
+
'0': cs-CZ
|
241 |
+
'1': de-DE
|
242 |
+
'2': en-AU
|
243 |
+
'3': en-GB
|
244 |
+
'4': en-US
|
245 |
+
'5': es-ES
|
246 |
+
'6': fr-FR
|
247 |
+
'7': it-IT
|
248 |
+
'8': ko-KR
|
249 |
+
'9': nl-NL
|
250 |
+
'10': pl-PL
|
251 |
+
'11': pt-PT
|
252 |
+
'12': ru-RU
|
253 |
+
'13': zh-CN
|
254 |
+
splits:
|
255 |
+
- name: train
|
256 |
+
num_bytes: 39114338.0
|
257 |
+
num_examples: 592
|
258 |
+
download_size: 34547264
|
259 |
+
dataset_size: 39114338.0
|
260 |
+
- config_name: en-US
|
261 |
+
features:
|
262 |
+
- name: audio
|
263 |
+
dtype:
|
264 |
+
audio:
|
265 |
+
sampling_rate: 8000
|
266 |
+
- name: transcription
|
267 |
+
dtype: string
|
268 |
+
- name: english_transcription
|
269 |
+
dtype: string
|
270 |
+
- name: intent_class
|
271 |
+
dtype:
|
272 |
+
class_label:
|
273 |
+
names:
|
274 |
+
'0': abroad
|
275 |
+
'1': address
|
276 |
+
'2': app_error
|
277 |
+
'3': atm_limit
|
278 |
+
'4': balance
|
279 |
+
'5': business_loan
|
280 |
+
'6': card_issues
|
281 |
+
'7': cash_deposit
|
282 |
+
'8': direct_debit
|
283 |
+
'9': freeze
|
284 |
+
'10': high_value_payment
|
285 |
+
'11': joint_account
|
286 |
+
'12': latest_transactions
|
287 |
+
'13': pay_bill
|
288 |
+
- name: lang_id
|
289 |
+
dtype:
|
290 |
+
class_label:
|
291 |
+
names:
|
292 |
+
'0': cs-CZ
|
293 |
+
'1': de-DE
|
294 |
+
'2': en-AU
|
295 |
+
'3': en-GB
|
296 |
+
'4': en-US
|
297 |
+
'5': es-ES
|
298 |
+
'6': fr-FR
|
299 |
+
'7': it-IT
|
300 |
+
'8': ko-KR
|
301 |
+
'9': nl-NL
|
302 |
+
'10': pl-PL
|
303 |
+
'11': pt-PT
|
304 |
+
'12': ru-RU
|
305 |
+
'13': zh-CN
|
306 |
+
splits:
|
307 |
+
- name: train
|
308 |
+
num_bytes: 38758978.0
|
309 |
+
num_examples: 563
|
310 |
+
download_size: 34191011
|
311 |
+
dataset_size: 38758978.0
|
312 |
+
- config_name: es-ES
|
313 |
+
features:
|
314 |
+
- name: audio
|
315 |
+
dtype:
|
316 |
+
audio:
|
317 |
+
sampling_rate: 8000
|
318 |
+
- name: transcription
|
319 |
+
dtype: string
|
320 |
+
- name: english_transcription
|
321 |
+
dtype: string
|
322 |
+
- name: intent_class
|
323 |
+
dtype:
|
324 |
+
class_label:
|
325 |
+
names:
|
326 |
+
'0': abroad
|
327 |
+
'1': address
|
328 |
+
'2': app_error
|
329 |
+
'3': atm_limit
|
330 |
+
'4': balance
|
331 |
+
'5': business_loan
|
332 |
+
'6': card_issues
|
333 |
+
'7': cash_deposit
|
334 |
+
'8': direct_debit
|
335 |
+
'9': freeze
|
336 |
+
'10': high_value_payment
|
337 |
+
'11': joint_account
|
338 |
+
'12': latest_transactions
|
339 |
+
'13': pay_bill
|
340 |
+
- name: lang_id
|
341 |
+
dtype:
|
342 |
+
class_label:
|
343 |
+
names:
|
344 |
+
'0': cs-CZ
|
345 |
+
'1': de-DE
|
346 |
+
'2': en-AU
|
347 |
+
'3': en-GB
|
348 |
+
'4': en-US
|
349 |
+
'5': es-ES
|
350 |
+
'6': fr-FR
|
351 |
+
'7': it-IT
|
352 |
+
'8': ko-KR
|
353 |
+
'9': nl-NL
|
354 |
+
'10': pl-PL
|
355 |
+
'11': pt-PT
|
356 |
+
'12': ru-RU
|
357 |
+
'13': zh-CN
|
358 |
+
splits:
|
359 |
+
- name: train
|
360 |
+
num_bytes: 44119716.0
|
361 |
+
num_examples: 486
|
362 |
+
download_size: 39065674
|
363 |
+
dataset_size: 44119716.0
|
364 |
+
- config_name: fr-FR
|
365 |
+
features:
|
366 |
+
- name: audio
|
367 |
+
dtype:
|
368 |
+
audio:
|
369 |
+
sampling_rate: 8000
|
370 |
+
- name: transcription
|
371 |
+
dtype: string
|
372 |
+
- name: english_transcription
|
373 |
+
dtype: string
|
374 |
+
- name: intent_class
|
375 |
+
dtype:
|
376 |
+
class_label:
|
377 |
+
names:
|
378 |
+
'0': abroad
|
379 |
+
'1': address
|
380 |
+
'2': app_error
|
381 |
+
'3': atm_limit
|
382 |
+
'4': balance
|
383 |
+
'5': business_loan
|
384 |
+
'6': card_issues
|
385 |
+
'7': cash_deposit
|
386 |
+
'8': direct_debit
|
387 |
+
'9': freeze
|
388 |
+
'10': high_value_payment
|
389 |
+
'11': joint_account
|
390 |
+
'12': latest_transactions
|
391 |
+
'13': pay_bill
|
392 |
+
- name: lang_id
|
393 |
+
dtype:
|
394 |
+
class_label:
|
395 |
+
names:
|
396 |
+
'0': cs-CZ
|
397 |
+
'1': de-DE
|
398 |
+
'2': en-AU
|
399 |
+
'3': en-GB
|
400 |
+
'4': en-US
|
401 |
+
'5': es-ES
|
402 |
+
'6': fr-FR
|
403 |
+
'7': it-IT
|
404 |
+
'8': ko-KR
|
405 |
+
'9': nl-NL
|
406 |
+
'10': pl-PL
|
407 |
+
'11': pt-PT
|
408 |
+
'12': ru-RU
|
409 |
+
'13': zh-CN
|
410 |
+
splits:
|
411 |
+
- name: train
|
412 |
+
num_bytes: 36180915.0
|
413 |
+
num_examples: 539
|
414 |
+
download_size: 32613718
|
415 |
+
dataset_size: 36180915.0
|
416 |
+
- config_name: it-IT
|
417 |
+
features:
|
418 |
+
- name: audio
|
419 |
+
dtype:
|
420 |
+
audio:
|
421 |
+
sampling_rate: 8000
|
422 |
+
- name: transcription
|
423 |
+
dtype: string
|
424 |
+
- name: english_transcription
|
425 |
+
dtype: string
|
426 |
+
- name: intent_class
|
427 |
+
dtype:
|
428 |
+
class_label:
|
429 |
+
names:
|
430 |
+
'0': abroad
|
431 |
+
'1': address
|
432 |
+
'2': app_error
|
433 |
+
'3': atm_limit
|
434 |
+
'4': balance
|
435 |
+
'5': business_loan
|
436 |
+
'6': card_issues
|
437 |
+
'7': cash_deposit
|
438 |
+
'8': direct_debit
|
439 |
+
'9': freeze
|
440 |
+
'10': high_value_payment
|
441 |
+
'11': joint_account
|
442 |
+
'12': latest_transactions
|
443 |
+
'13': pay_bill
|
444 |
+
- name: lang_id
|
445 |
+
dtype:
|
446 |
+
class_label:
|
447 |
+
names:
|
448 |
+
'0': cs-CZ
|
449 |
+
'1': de-DE
|
450 |
+
'2': en-AU
|
451 |
+
'3': en-GB
|
452 |
+
'4': en-US
|
453 |
+
'5': es-ES
|
454 |
+
'6': fr-FR
|
455 |
+
'7': it-IT
|
456 |
+
'8': ko-KR
|
457 |
+
'9': nl-NL
|
458 |
+
'10': pl-PL
|
459 |
+
'11': pt-PT
|
460 |
+
'12': ru-RU
|
461 |
+
'13': zh-CN
|
462 |
+
splits:
|
463 |
+
- name: train
|
464 |
+
num_bytes: 82809519.0
|
465 |
+
num_examples: 696
|
466 |
+
download_size: 59279783
|
467 |
+
dataset_size: 82809519.0
|
468 |
+
- config_name: ko-KR
|
469 |
+
features:
|
470 |
+
- name: audio
|
471 |
+
dtype:
|
472 |
+
audio:
|
473 |
+
sampling_rate: 8000
|
474 |
+
- name: transcription
|
475 |
+
dtype: string
|
476 |
+
- name: english_transcription
|
477 |
+
dtype: string
|
478 |
+
- name: intent_class
|
479 |
+
dtype:
|
480 |
+
class_label:
|
481 |
+
names:
|
482 |
+
'0': abroad
|
483 |
+
'1': address
|
484 |
+
'2': app_error
|
485 |
+
'3': atm_limit
|
486 |
+
'4': balance
|
487 |
+
'5': business_loan
|
488 |
+
'6': card_issues
|
489 |
+
'7': cash_deposit
|
490 |
+
'8': direct_debit
|
491 |
+
'9': freeze
|
492 |
+
'10': high_value_payment
|
493 |
+
'11': joint_account
|
494 |
+
'12': latest_transactions
|
495 |
+
'13': pay_bill
|
496 |
+
- name: lang_id
|
497 |
+
dtype:
|
498 |
+
class_label:
|
499 |
+
names:
|
500 |
+
'0': cs-CZ
|
501 |
+
'1': de-DE
|
502 |
+
'2': en-AU
|
503 |
+
'3': en-GB
|
504 |
+
'4': en-US
|
505 |
+
'5': es-ES
|
506 |
+
'6': fr-FR
|
507 |
+
'7': it-IT
|
508 |
+
'8': ko-KR
|
509 |
+
'9': nl-NL
|
510 |
+
'10': pl-PL
|
511 |
+
'11': pt-PT
|
512 |
+
'12': ru-RU
|
513 |
+
'13': zh-CN
|
514 |
+
splits:
|
515 |
+
- name: train
|
516 |
+
num_bytes: 39704392.0
|
517 |
+
num_examples: 592
|
518 |
+
download_size: 34155509
|
519 |
+
dataset_size: 39704392.0
|
520 |
+
- config_name: nl-NL
|
521 |
+
features:
|
522 |
+
- name: audio
|
523 |
+
dtype:
|
524 |
+
audio:
|
525 |
+
sampling_rate: 8000
|
526 |
+
- name: transcription
|
527 |
+
dtype: string
|
528 |
+
- name: english_transcription
|
529 |
+
dtype: string
|
530 |
+
- name: intent_class
|
531 |
+
dtype:
|
532 |
+
class_label:
|
533 |
+
names:
|
534 |
+
'0': abroad
|
535 |
+
'1': address
|
536 |
+
'2': app_error
|
537 |
+
'3': atm_limit
|
538 |
+
'4': balance
|
539 |
+
'5': business_loan
|
540 |
+
'6': card_issues
|
541 |
+
'7': cash_deposit
|
542 |
+
'8': direct_debit
|
543 |
+
'9': freeze
|
544 |
+
'10': high_value_payment
|
545 |
+
'11': joint_account
|
546 |
+
'12': latest_transactions
|
547 |
+
'13': pay_bill
|
548 |
+
- name: lang_id
|
549 |
+
dtype:
|
550 |
+
class_label:
|
551 |
+
names:
|
552 |
+
'0': cs-CZ
|
553 |
+
'1': de-DE
|
554 |
+
'2': en-AU
|
555 |
+
'3': en-GB
|
556 |
+
'4': en-US
|
557 |
+
'5': es-ES
|
558 |
+
'6': fr-FR
|
559 |
+
'7': it-IT
|
560 |
+
'8': ko-KR
|
561 |
+
'9': nl-NL
|
562 |
+
'10': pl-PL
|
563 |
+
'11': pt-PT
|
564 |
+
'12': ru-RU
|
565 |
+
'13': zh-CN
|
566 |
+
splits:
|
567 |
+
- name: train
|
568 |
+
num_bytes: 51394899.0
|
569 |
+
num_examples: 654
|
570 |
+
download_size: 46537391
|
571 |
+
dataset_size: 51394899.0
|
572 |
+
- config_name: pl-PL
|
573 |
+
features:
|
574 |
+
- name: audio
|
575 |
+
dtype:
|
576 |
+
audio:
|
577 |
+
sampling_rate: 8000
|
578 |
+
- name: transcription
|
579 |
+
dtype: string
|
580 |
+
- name: english_transcription
|
581 |
+
dtype: string
|
582 |
+
- name: intent_class
|
583 |
+
dtype:
|
584 |
+
class_label:
|
585 |
+
names:
|
586 |
+
'0': abroad
|
587 |
+
'1': address
|
588 |
+
'2': app_error
|
589 |
+
'3': atm_limit
|
590 |
+
'4': balance
|
591 |
+
'5': business_loan
|
592 |
+
'6': card_issues
|
593 |
+
'7': cash_deposit
|
594 |
+
'8': direct_debit
|
595 |
+
'9': freeze
|
596 |
+
'10': high_value_payment
|
597 |
+
'11': joint_account
|
598 |
+
'12': latest_transactions
|
599 |
+
'13': pay_bill
|
600 |
+
- name: lang_id
|
601 |
+
dtype:
|
602 |
+
class_label:
|
603 |
+
names:
|
604 |
+
'0': cs-CZ
|
605 |
+
'1': de-DE
|
606 |
+
'2': en-AU
|
607 |
+
'3': en-GB
|
608 |
+
'4': en-US
|
609 |
+
'5': es-ES
|
610 |
+
'6': fr-FR
|
611 |
+
'7': it-IT
|
612 |
+
'8': ko-KR
|
613 |
+
'9': nl-NL
|
614 |
+
'10': pl-PL
|
615 |
+
'11': pt-PT
|
616 |
+
'12': ru-RU
|
617 |
+
'13': zh-CN
|
618 |
+
splits:
|
619 |
+
- name: train
|
620 |
+
num_bytes: 88519091.0
|
621 |
+
num_examples: 562
|
622 |
+
download_size: 52653360
|
623 |
+
dataset_size: 88519091.0
|
624 |
+
- config_name: pt-PT
|
625 |
+
features:
|
626 |
+
- name: audio
|
627 |
+
dtype:
|
628 |
+
audio:
|
629 |
+
sampling_rate: 8000
|
630 |
+
- name: transcription
|
631 |
+
dtype: string
|
632 |
+
- name: english_transcription
|
633 |
+
dtype: string
|
634 |
+
- name: intent_class
|
635 |
+
dtype:
|
636 |
+
class_label:
|
637 |
+
names:
|
638 |
+
'0': abroad
|
639 |
+
'1': address
|
640 |
+
'2': app_error
|
641 |
+
'3': atm_limit
|
642 |
+
'4': balance
|
643 |
+
'5': business_loan
|
644 |
+
'6': card_issues
|
645 |
+
'7': cash_deposit
|
646 |
+
'8': direct_debit
|
647 |
+
'9': freeze
|
648 |
+
'10': high_value_payment
|
649 |
+
'11': joint_account
|
650 |
+
'12': latest_transactions
|
651 |
+
'13': pay_bill
|
652 |
+
- name: lang_id
|
653 |
+
dtype:
|
654 |
+
class_label:
|
655 |
+
names:
|
656 |
+
'0': cs-CZ
|
657 |
+
'1': de-DE
|
658 |
+
'2': en-AU
|
659 |
+
'3': en-GB
|
660 |
+
'4': en-US
|
661 |
+
'5': es-ES
|
662 |
+
'6': fr-FR
|
663 |
+
'7': it-IT
|
664 |
+
'8': ko-KR
|
665 |
+
'9': nl-NL
|
666 |
+
'10': pl-PL
|
667 |
+
'11': pt-PT
|
668 |
+
'12': ru-RU
|
669 |
+
'13': zh-CN
|
670 |
+
splits:
|
671 |
+
- name: train
|
672 |
+
num_bytes: 77520663.0
|
673 |
+
num_examples: 604
|
674 |
+
download_size: 51730868
|
675 |
+
dataset_size: 77520663.0
|
676 |
+
- config_name: ru-RU
|
677 |
+
features:
|
678 |
+
- name: audio
|
679 |
+
dtype:
|
680 |
+
audio:
|
681 |
+
sampling_rate: 8000
|
682 |
+
- name: transcription
|
683 |
+
dtype: string
|
684 |
+
- name: english_transcription
|
685 |
+
dtype: string
|
686 |
+
- name: intent_class
|
687 |
+
dtype:
|
688 |
+
class_label:
|
689 |
+
names:
|
690 |
+
'0': abroad
|
691 |
+
'1': address
|
692 |
+
'2': app_error
|
693 |
+
'3': atm_limit
|
694 |
+
'4': balance
|
695 |
+
'5': business_loan
|
696 |
+
'6': card_issues
|
697 |
+
'7': cash_deposit
|
698 |
+
'8': direct_debit
|
699 |
+
'9': freeze
|
700 |
+
'10': high_value_payment
|
701 |
+
'11': joint_account
|
702 |
+
'12': latest_transactions
|
703 |
+
'13': pay_bill
|
704 |
+
- name: lang_id
|
705 |
+
dtype:
|
706 |
+
class_label:
|
707 |
+
names:
|
708 |
+
'0': cs-CZ
|
709 |
+
'1': de-DE
|
710 |
+
'2': en-AU
|
711 |
+
'3': en-GB
|
712 |
+
'4': en-US
|
713 |
+
'5': es-ES
|
714 |
+
'6': fr-FR
|
715 |
+
'7': it-IT
|
716 |
+
'8': ko-KR
|
717 |
+
'9': nl-NL
|
718 |
+
'10': pl-PL
|
719 |
+
'11': pt-PT
|
720 |
+
'12': ru-RU
|
721 |
+
'13': zh-CN
|
722 |
+
splits:
|
723 |
+
- name: train
|
724 |
+
num_bytes: 38133114.0
|
725 |
+
num_examples: 539
|
726 |
+
download_size: 34490005
|
727 |
+
dataset_size: 38133114.0
|
728 |
+
- config_name: zh-CN
|
729 |
+
features:
|
730 |
+
- name: audio
|
731 |
+
dtype:
|
732 |
+
audio:
|
733 |
+
sampling_rate: 8000
|
734 |
+
- name: transcription
|
735 |
+
dtype: string
|
736 |
+
- name: english_transcription
|
737 |
+
dtype: string
|
738 |
+
- name: intent_class
|
739 |
+
dtype:
|
740 |
+
class_label:
|
741 |
+
names:
|
742 |
+
'0': abroad
|
743 |
+
'1': address
|
744 |
+
'2': app_error
|
745 |
+
'3': atm_limit
|
746 |
+
'4': balance
|
747 |
+
'5': business_loan
|
748 |
+
'6': card_issues
|
749 |
+
'7': cash_deposit
|
750 |
+
'8': direct_debit
|
751 |
+
'9': freeze
|
752 |
+
'10': high_value_payment
|
753 |
+
'11': joint_account
|
754 |
+
'12': latest_transactions
|
755 |
+
'13': pay_bill
|
756 |
+
- name: lang_id
|
757 |
+
dtype:
|
758 |
+
class_label:
|
759 |
+
names:
|
760 |
+
'0': cs-CZ
|
761 |
+
'1': de-DE
|
762 |
+
'2': en-AU
|
763 |
+
'3': en-GB
|
764 |
+
'4': en-US
|
765 |
+
'5': es-ES
|
766 |
+
'6': fr-FR
|
767 |
+
'7': it-IT
|
768 |
+
'8': ko-KR
|
769 |
+
'9': nl-NL
|
770 |
+
'10': pl-PL
|
771 |
+
'11': pt-PT
|
772 |
+
'12': ru-RU
|
773 |
+
'13': zh-CN
|
774 |
+
splits:
|
775 |
+
- name: train
|
776 |
+
num_bytes: 36497299.0
|
777 |
+
num_examples: 502
|
778 |
+
download_size: 32353193
|
779 |
+
dataset_size: 36497299.0
|
780 |
+
configs:
|
781 |
+
- config_name: all
|
782 |
+
data_files:
|
783 |
+
- split: train
|
784 |
+
path:
|
785 |
+
- "cs-CZ/train-*"
|
786 |
+
- "de-DE/train-*"
|
787 |
+
- "en-AU/train-*"
|
788 |
+
- "en-GB/train-*"
|
789 |
+
- "en-US/train-*"
|
790 |
+
- "es-ES/train-*"
|
791 |
+
- "fr-FR/train-*"
|
792 |
+
- "it-IT/train-*"
|
793 |
+
- "ko-KR/train-*"
|
794 |
+
- "nl-NL/train-*"
|
795 |
+
- "pl-PL/train-*"
|
796 |
+
- "pt-PT/train-*"
|
797 |
+
- "ru-RU/train-*"
|
798 |
+
- "zh-CN/train-*"
|
799 |
+
- config_name: cs-CZ
|
800 |
+
data_files:
|
801 |
+
- split: train
|
802 |
+
path: cs-CZ/train-*
|
803 |
+
- config_name: de-DE
|
804 |
+
data_files:
|
805 |
+
- split: train
|
806 |
+
path: de-DE/train-*
|
807 |
+
- config_name: en-AU
|
808 |
+
data_files:
|
809 |
+
- split: train
|
810 |
+
path: en-AU/train-*
|
811 |
+
- config_name: en-GB
|
812 |
+
data_files:
|
813 |
+
- split: train
|
814 |
+
path: en-GB/train-*
|
815 |
+
- config_name: en-US
|
816 |
+
data_files:
|
817 |
+
- split: train
|
818 |
+
path: en-US/train-*
|
819 |
+
- config_name: es-ES
|
820 |
+
data_files:
|
821 |
+
- split: train
|
822 |
+
path: es-ES/train-*
|
823 |
+
- config_name: fr-FR
|
824 |
+
data_files:
|
825 |
+
- split: train
|
826 |
+
path: fr-FR/train-*
|
827 |
+
- config_name: it-IT
|
828 |
+
data_files:
|
829 |
+
- split: train
|
830 |
+
path: it-IT/train-*
|
831 |
+
- config_name: ko-KR
|
832 |
+
data_files:
|
833 |
+
- split: train
|
834 |
+
path: ko-KR/train-*
|
835 |
+
- config_name: nl-NL
|
836 |
+
data_files:
|
837 |
+
- split: train
|
838 |
+
path: nl-NL/train-*
|
839 |
+
- config_name: pl-PL
|
840 |
+
data_files:
|
841 |
+
- split: train
|
842 |
+
path: pl-PL/train-*
|
843 |
+
- config_name: pt-PT
|
844 |
+
data_files:
|
845 |
+
- split: train
|
846 |
+
path: pt-PT/train-*
|
847 |
+
- config_name: ru-RU
|
848 |
+
data_files:
|
849 |
+
- split: train
|
850 |
+
path: ru-RU/train-*
|
851 |
+
- config_name: zh-CN
|
852 |
+
data_files:
|
853 |
+
- split: train
|
854 |
+
path: zh-CN/train-*
|
855 |
---
|
856 |
|
857 |
# MInDS-14
|
|
|
901 |
- Total amount of disk used: 471 MB
|
902 |
|
903 |
|
904 |
+
An example of a data instance of the config `fr-FR` looks as follows:
|
905 |
|
906 |
```
|
907 |
{
|
|
|
908 |
"audio": {
|
909 |
+
"path": None,
|
910 |
"array": array(
|
911 |
[0.0, 0.0, 0.0, ..., 0.0, 0.00048828, -0.00024414], dtype=float32
|
912 |
),
|
|
|
922 |
### Data Fields
|
923 |
The data fields are the same among all splits.
|
924 |
|
925 |
+
- **audio** (dict): Audio object including loaded audio array, sampling rate and path to audio
|
|
|
926 |
- **transcription** (str): Transcription of the audio file
|
927 |
- **english_transcription** (str): English transcription of the audio file
|
928 |
- **intent_class** (int): Class id of intent
|
cs-CZ/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8f0a3dc05bddc87001be4960c91e06e6ed703012421d1d3add26817ee354098d
|
3 |
+
size 36473252
|
de-DE/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3fee53a45e4adfa4b0447ee15149979d990a9060a23a21a732e455235329598d
|
3 |
+
size 41061320
|
en-AU/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:10101bbef91978818fdf18653fe944c0916286ce9371f20aa52ac75f229a4ce0
|
3 |
+
size 37345603
|
en-GB/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:29997c959c49d0245bdf0957784a18b931310a3b90cf4c6e53101f84e96e4f82
|
3 |
+
size 34547264
|
en-US/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa5d84d02725a8449916a2ba9adc6c5a00eb493927204f35a0041d64a6958956
|
3 |
+
size 34191011
|
es-ES/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa6ceea11a11ba336f63594f2ea4c79c073ba318977614b4163b9244256a15dc
|
3 |
+
size 39065674
|
fr-FR/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:74a2c916828eb83c9b6c4e2dbe06db6ccdc99144c964fe13e2b29d3a080bd032
|
3 |
+
size 32613718
|
it-IT/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eb08f070b924b495d472db45b597a8a7f2355c8b7159bbf03ce434f15b5ff401
|
3 |
+
size 59279783
|
ko-KR/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:face133a1ad9a2efb3122f0eeb24cf1417a8dff519176d0d373df5f143bf9cc5
|
3 |
+
size 34155509
|
minds14.py
DELETED
@@ -1,172 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2022 The PolyAI and 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 |
-
|
16 |
-
import csv
|
17 |
-
import os
|
18 |
-
|
19 |
-
import datasets
|
20 |
-
|
21 |
-
logger = datasets.logging.get_logger(__name__)
|
22 |
-
|
23 |
-
|
24 |
-
""" MInDS-14 Dataset"""
|
25 |
-
|
26 |
-
_CITATION = """\
|
27 |
-
@article{gerz2021multilingual,
|
28 |
-
title={Multilingual and cross-lingual intent detection from spoken data},
|
29 |
-
author={Gerz, Daniela and Su, Pei-Hao and Kusztos, Razvan and Mondal, Avishek and Lis, Michal and Singhal, Eshan and Mrk{\v{s}}i{\'c}, Nikola and Wen, Tsung-Hsien and Vuli{\'c}, Ivan},
|
30 |
-
journal={arXiv preprint arXiv:2104.08524},
|
31 |
-
year={2021}
|
32 |
-
}
|
33 |
-
"""
|
34 |
-
|
35 |
-
_DESCRIPTION = """\
|
36 |
-
MINDS-14 is training and evaluation resource for intent
|
37 |
-
detection task with spoken data. It covers 14
|
38 |
-
intents extracted from a commercial system
|
39 |
-
in the e-banking domain, associated with spoken examples in 14 diverse language varieties.
|
40 |
-
"""
|
41 |
-
|
42 |
-
_ALL_CONFIGS = sorted([
|
43 |
-
"cs-CZ", "de-DE", "en-AU", "en-GB", "en-US", "es-ES", "fr-FR", "it-IT", "ko-KR", "nl-NL", "pl-PL", "pt-PT", "ru-RU", "zh-CN"
|
44 |
-
])
|
45 |
-
|
46 |
-
|
47 |
-
_DESCRIPTION = "MINDS-14 is a dataset for the intent detection task with spoken data. It covers 14 intents extracted from a commercial system in the e-banking domain, associated with spoken examples in 14 diverse language varieties."
|
48 |
-
|
49 |
-
_HOMEPAGE_URL = "https://arxiv.org/abs/2104.08524"
|
50 |
-
|
51 |
-
_DATA_URL = "https://www.dropbox.com/s/e2us0hcs3ilr20e/MInDS-14.zip?dl=1"
|
52 |
-
|
53 |
-
|
54 |
-
class Minds14Config(datasets.BuilderConfig):
|
55 |
-
"""BuilderConfig for xtreme-s"""
|
56 |
-
|
57 |
-
def __init__(
|
58 |
-
self, name, description, homepage, data_url
|
59 |
-
):
|
60 |
-
super(Minds14Config, self).__init__(
|
61 |
-
name=self.name,
|
62 |
-
version=datasets.Version("1.0.0", ""),
|
63 |
-
description=self.description,
|
64 |
-
)
|
65 |
-
self.name = name
|
66 |
-
self.description = description
|
67 |
-
self.homepage = homepage
|
68 |
-
self.data_url = data_url
|
69 |
-
|
70 |
-
|
71 |
-
def _build_config(name):
|
72 |
-
return Minds14Config(
|
73 |
-
name=name,
|
74 |
-
description=_DESCRIPTION,
|
75 |
-
homepage=_HOMEPAGE_URL,
|
76 |
-
data_url=_DATA_URL,
|
77 |
-
)
|
78 |
-
|
79 |
-
|
80 |
-
class Minds14(datasets.GeneratorBasedBuilder):
|
81 |
-
|
82 |
-
DEFAULT_WRITER_BATCH_SIZE = 1000
|
83 |
-
BUILDER_CONFIGS = [_build_config(name) for name in _ALL_CONFIGS + ["all"]]
|
84 |
-
|
85 |
-
def _info(self):
|
86 |
-
task_templates = None
|
87 |
-
langs = _ALL_CONFIGS
|
88 |
-
features = datasets.Features(
|
89 |
-
{
|
90 |
-
"path": datasets.Value("string"),
|
91 |
-
"audio": datasets.Audio(sampling_rate=8_000),
|
92 |
-
"transcription": datasets.Value("string"),
|
93 |
-
"english_transcription": datasets.Value("string"),
|
94 |
-
"intent_class": datasets.ClassLabel(
|
95 |
-
names=[
|
96 |
-
"abroad",
|
97 |
-
"address",
|
98 |
-
"app_error",
|
99 |
-
"atm_limit",
|
100 |
-
"balance",
|
101 |
-
"business_loan",
|
102 |
-
"card_issues",
|
103 |
-
"cash_deposit",
|
104 |
-
"direct_debit",
|
105 |
-
"freeze",
|
106 |
-
"high_value_payment",
|
107 |
-
"joint_account",
|
108 |
-
"latest_transactions",
|
109 |
-
"pay_bill",
|
110 |
-
]
|
111 |
-
),
|
112 |
-
"lang_id": datasets.ClassLabel(names=langs),
|
113 |
-
}
|
114 |
-
)
|
115 |
-
|
116 |
-
return datasets.DatasetInfo(
|
117 |
-
description=_DESCRIPTION,
|
118 |
-
features=features,
|
119 |
-
supervised_keys=("audio", "transcription"),
|
120 |
-
homepage=self.config.homepage,
|
121 |
-
citation=_CITATION,
|
122 |
-
task_templates=task_templates,
|
123 |
-
)
|
124 |
-
|
125 |
-
def _split_generators(self, dl_manager):
|
126 |
-
langs = (
|
127 |
-
_ALL_CONFIGS
|
128 |
-
if self.config.name == "all"
|
129 |
-
else [self.config.name]
|
130 |
-
)
|
131 |
-
|
132 |
-
archive_path = dl_manager.download_and_extract(self.config.data_url)
|
133 |
-
audio_path = dl_manager.extract(
|
134 |
-
os.path.join(archive_path, "MInDS-14", "audio.zip")
|
135 |
-
)
|
136 |
-
text_path = dl_manager.extract(
|
137 |
-
os.path.join(archive_path, "MInDS-14", "text.zip")
|
138 |
-
)
|
139 |
-
|
140 |
-
text_path = {l: os.path.join(text_path, f"{l}.csv") for l in langs}
|
141 |
-
|
142 |
-
return [
|
143 |
-
datasets.SplitGenerator(
|
144 |
-
name=datasets.Split.TRAIN,
|
145 |
-
gen_kwargs={
|
146 |
-
"audio_path": audio_path,
|
147 |
-
"text_paths": text_path,
|
148 |
-
},
|
149 |
-
)
|
150 |
-
]
|
151 |
-
|
152 |
-
|
153 |
-
def _generate_examples(self, audio_path, text_paths):
|
154 |
-
key = 0
|
155 |
-
for lang in text_paths.keys():
|
156 |
-
text_path = text_paths[lang]
|
157 |
-
with open(text_path, encoding="utf-8") as csv_file:
|
158 |
-
csv_reader = csv.reader(csv_file, delimiter=",", skipinitialspace=True)
|
159 |
-
next(csv_reader)
|
160 |
-
for row in csv_reader:
|
161 |
-
file_path, transcription, english_transcription, intent_class = row
|
162 |
-
|
163 |
-
file_path = os.path.join(audio_path, *file_path.split("/"))
|
164 |
-
yield key, {
|
165 |
-
"path": file_path,
|
166 |
-
"audio": file_path,
|
167 |
-
"transcription": transcription,
|
168 |
-
"english_transcription": english_transcription,
|
169 |
-
"intent_class": intent_class.lower(),
|
170 |
-
"lang_id": _ALL_CONFIGS.index(lang),
|
171 |
-
}
|
172 |
-
key += 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nl-NL/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:38e21b4420f4b13078885c5112b1d3b01c13b05bca81975b0a876248ab03d422
|
3 |
+
size 46537391
|
pl-PL/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a8667599ce98fb787f4208d0c8e3b9d7b01d52021c600b43eecbcc1a4600da36
|
3 |
+
size 52653360
|
pt-PT/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:574fe363453cb8559cb1f609a497f8f10eaefd3937cd525bc3c1eabc9fd919cf
|
3 |
+
size 51730868
|
ru-RU/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fdca2a6c284511e1a5f3e1badb062b08e083bc6fbf0bee8c774a1ee61f27bbad
|
3 |
+
size 34490005
|
zh-CN/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:772022c06fb51cf3a81ee4a03b8b7d3a2f96f2c710844b37d04c22726a61e561
|
3 |
+
size 32353193
|