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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a07682
afd1b94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
---
annotations_creators:
- expert-generated
- crowdsourced
- machine-generated
language_creators:
- crowdsourced
- expert-generated
language:
- en
- fr
- it
- es
- pt
- de
- nl
- ru
- pl
- cs
- ko
- zh
license:
- cc-by-4.0
multilinguality:
- multilingual
size_categories:
- 10K<n<100K
task_categories:
- automatic-speech-recognition
- speech-processing
task_ids:
- speech-recognition
- keyword-spotting
pretty_name: MInDS-14
language_bcp47:
- en
- en-GB
- en-US
- en-AU
- fr
- it
- es
- pt
- de
- nl
- ru
- pl
- cs
- ko
- zh
dataset_info:
- config_name: cs-CZ
  features:
  - name: audio
    dtype:
      audio:
        sampling_rate: 8000
  - name: transcription
    dtype: string
  - name: english_transcription
    dtype: string
  - name: intent_class
    dtype:
      class_label:
        names:
          '0': abroad
          '1': address
          '2': app_error
          '3': atm_limit
          '4': balance
          '5': business_loan
          '6': card_issues
          '7': cash_deposit
          '8': direct_debit
          '9': freeze
          '10': high_value_payment
          '11': joint_account
          '12': latest_transactions
          '13': pay_bill
  - name: lang_id
    dtype:
      class_label:
        names:
          '0': cs-CZ
          '1': de-DE
          '2': en-AU
          '3': en-GB
          '4': en-US
          '5': es-ES
          '6': fr-FR
          '7': it-IT
          '8': ko-KR
          '9': nl-NL
          '10': pl-PL
          '11': pt-PT
          '12': ru-RU
          '13': zh-CN
  splits:
  - name: train
    num_bytes: 40348448.0
    num_examples: 574
  download_size: 36473252
  dataset_size: 40348448.0
- config_name: de-DE
  features:
  - name: audio
    dtype:
      audio:
        sampling_rate: 8000
  - name: transcription
    dtype: string
  - name: english_transcription
    dtype: string
  - name: intent_class
    dtype:
      class_label:
        names:
          '0': abroad
          '1': address
          '2': app_error
          '3': atm_limit
          '4': balance
          '5': business_loan
          '6': card_issues
          '7': cash_deposit
          '8': direct_debit
          '9': freeze
          '10': high_value_payment
          '11': joint_account
          '12': latest_transactions
          '13': pay_bill
  - name: lang_id
    dtype:
      class_label:
        names:
          '0': cs-CZ
          '1': de-DE
          '2': en-AU
          '3': en-GB
          '4': en-US
          '5': es-ES
          '6': fr-FR
          '7': it-IT
          '8': ko-KR
          '9': nl-NL
          '10': pl-PL
          '11': pt-PT
          '12': ru-RU
          '13': zh-CN
  splits:
  - name: train
    num_bytes: 53416129.0
    num_examples: 611
  download_size: 41061320
  dataset_size: 53416129.0
- config_name: en-AU
  features:
  - name: audio
    dtype:
      audio:
        sampling_rate: 8000
  - name: transcription
    dtype: string
  - name: english_transcription
    dtype: string
  - name: intent_class
    dtype:
      class_label:
        names:
          '0': abroad
          '1': address
          '2': app_error
          '3': atm_limit
          '4': balance
          '5': business_loan
          '6': card_issues
          '7': cash_deposit
          '8': direct_debit
          '9': freeze
          '10': high_value_payment
          '11': joint_account
          '12': latest_transactions
          '13': pay_bill
  - name: lang_id
    dtype:
      class_label:
        names:
          '0': cs-CZ
          '1': de-DE
          '2': en-AU
          '3': en-GB
          '4': en-US
          '5': es-ES
          '6': fr-FR
          '7': it-IT
          '8': ko-KR
          '9': nl-NL
          '10': pl-PL
          '11': pt-PT
          '12': ru-RU
          '13': zh-CN
  splits:
  - name: train
    num_bytes: 44128508.0
    num_examples: 654
  download_size: 37345603
  dataset_size: 44128508.0
- config_name: en-GB
  features:
  - name: audio
    dtype:
      audio:
        sampling_rate: 8000
  - name: transcription
    dtype: string
  - name: english_transcription
    dtype: string
  - name: intent_class
    dtype:
      class_label:
        names:
          '0': abroad
          '1': address
          '2': app_error
          '3': atm_limit
          '4': balance
          '5': business_loan
          '6': card_issues
          '7': cash_deposit
          '8': direct_debit
          '9': freeze
          '10': high_value_payment
          '11': joint_account
          '12': latest_transactions
          '13': pay_bill
  - name: lang_id
    dtype:
      class_label:
        names:
          '0': cs-CZ
          '1': de-DE
          '2': en-AU
          '3': en-GB
          '4': en-US
          '5': es-ES
          '6': fr-FR
          '7': it-IT
          '8': ko-KR
          '9': nl-NL
          '10': pl-PL
          '11': pt-PT
          '12': ru-RU
          '13': zh-CN
  splits:
  - name: train
    num_bytes: 39114338.0
    num_examples: 592
  download_size: 34547264
  dataset_size: 39114338.0
- config_name: en-US
  features:
  - name: audio
    dtype:
      audio:
        sampling_rate: 8000
  - name: transcription
    dtype: string
  - name: english_transcription
    dtype: string
  - name: intent_class
    dtype:
      class_label:
        names:
          '0': abroad
          '1': address
          '2': app_error
          '3': atm_limit
          '4': balance
          '5': business_loan
          '6': card_issues
          '7': cash_deposit
          '8': direct_debit
          '9': freeze
          '10': high_value_payment
          '11': joint_account
          '12': latest_transactions
          '13': pay_bill
  - name: lang_id
    dtype:
      class_label:
        names:
          '0': cs-CZ
          '1': de-DE
          '2': en-AU
          '3': en-GB
          '4': en-US
          '5': es-ES
          '6': fr-FR
          '7': it-IT
          '8': ko-KR
          '9': nl-NL
          '10': pl-PL
          '11': pt-PT
          '12': ru-RU
          '13': zh-CN
  splits:
  - name: train
    num_bytes: 38758978.0
    num_examples: 563
  download_size: 34191011
  dataset_size: 38758978.0
- config_name: es-ES
  features:
  - name: audio
    dtype:
      audio:
        sampling_rate: 8000
  - name: transcription
    dtype: string
  - name: english_transcription
    dtype: string
  - name: intent_class
    dtype:
      class_label:
        names:
          '0': abroad
          '1': address
          '2': app_error
          '3': atm_limit
          '4': balance
          '5': business_loan
          '6': card_issues
          '7': cash_deposit
          '8': direct_debit
          '9': freeze
          '10': high_value_payment
          '11': joint_account
          '12': latest_transactions
          '13': pay_bill
  - name: lang_id
    dtype:
      class_label:
        names:
          '0': cs-CZ
          '1': de-DE
          '2': en-AU
          '3': en-GB
          '4': en-US
          '5': es-ES
          '6': fr-FR
          '7': it-IT
          '8': ko-KR
          '9': nl-NL
          '10': pl-PL
          '11': pt-PT
          '12': ru-RU
          '13': zh-CN
  splits:
  - name: train
    num_bytes: 44119716.0
    num_examples: 486
  download_size: 39065674
  dataset_size: 44119716.0
- config_name: fr-FR
  features:
  - name: audio
    dtype:
      audio:
        sampling_rate: 8000
  - name: transcription
    dtype: string
  - name: english_transcription
    dtype: string
  - name: intent_class
    dtype:
      class_label:
        names:
          '0': abroad
          '1': address
          '2': app_error
          '3': atm_limit
          '4': balance
          '5': business_loan
          '6': card_issues
          '7': cash_deposit
          '8': direct_debit
          '9': freeze
          '10': high_value_payment
          '11': joint_account
          '12': latest_transactions
          '13': pay_bill
  - name: lang_id
    dtype:
      class_label:
        names:
          '0': cs-CZ
          '1': de-DE
          '2': en-AU
          '3': en-GB
          '4': en-US
          '5': es-ES
          '6': fr-FR
          '7': it-IT
          '8': ko-KR
          '9': nl-NL
          '10': pl-PL
          '11': pt-PT
          '12': ru-RU
          '13': zh-CN
  splits:
  - name: train
    num_bytes: 36180915.0
    num_examples: 539
  download_size: 32613718
  dataset_size: 36180915.0
configs:
- config_name: cs-CZ
  data_files:
  - split: train
    path: cs-CZ/train-*
- config_name: de-DE
  data_files:
  - split: train
    path: de-DE/train-*
- config_name: en-AU
  data_files:
  - split: train
    path: en-AU/train-*
- config_name: en-GB
  data_files:
  - split: train
    path: en-GB/train-*
- config_name: en-US
  data_files:
  - split: train
    path: en-US/train-*
- config_name: es-ES
  data_files:
  - split: train
    path: es-ES/train-*
- config_name: fr-FR
  data_files:
  - split: train
    path: fr-FR/train-*
---

# MInDS-14

## Dataset Description

- **Fine-Tuning script:** [pytorch/audio-classification](https://github.com/huggingface/transformers/tree/main/examples/pytorch/audio-classification)
- **Paper:** [Multilingual and Cross-Lingual Intent Detection from Spoken Data](https://arxiv.org/abs/2104.08524)
- **Total amount of disk used:** ca. 500 MB 

MINDS-14 is training and evaluation resource for 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.

## Example

MInDS-14 can be downloaded and used as follows:

```py
from datasets import load_dataset

minds_14 = load_dataset("PolyAI/minds14", "fr-FR") # for French
# to download all data for multi-lingual fine-tuning uncomment following line
# minds_14 = load_dataset("PolyAI/all", "all")

# see structure
print(minds_14)

# load audio sample on the fly
audio_input = minds_14["train"][0]["audio"]  # first decoded audio sample
intent_class = minds_14["train"][0]["intent_class"]  # first transcription
intent = minds_14["train"].features["intent_class"].names[intent_class]

# use audio_input and language_class to fine-tune your model for audio classification
```

## Dataset Structure

We show detailed information the example configurations `fr-FR` of the dataset.
All other configurations have the same structure.

### Data Instances

**fr-FR**

- Size of downloaded dataset files: 471 MB
- Size of the generated dataset: 300 KB
- Total amount of disk used: 471 MB


An example of a datainstance of the config `fr-FR` looks as follows:

```
{
    "path": "/home/patrick/.cache/huggingface/datasets/downloads/extracted/3ebe2265b2f102203be5e64fa8e533e0c6742e72268772c8ac1834c5a1a921e3/fr-FR~ADDRESS/response_4.wav",
    "audio": {
        "path": "/home/patrick/.cache/huggingface/datasets/downloads/extracted/3ebe2265b2f102203be5e64fa8e533e0c6742e72268772c8ac1834c5a1a921e3/fr-FR~ADDRESS/response_4.wav",
        "array": array(
            [0.0, 0.0, 0.0, ..., 0.0, 0.00048828, -0.00024414], dtype=float32
        ),
        "sampling_rate": 8000,
    },
    "transcription": "je souhaite changer mon adresse",
    "english_transcription": "I want to change my address",
    "intent_class": 1,
    "lang_id": 6,
}
```

### Data Fields
The data fields are the same among all splits.

- **path** (str): Path to the audio file
- **audio** (dict): Audio object including loaded audio array, sampling rate and path ot audio
- **transcription** (str): Transcription of the audio file
- **english_transcription** (str): English transcription of the audio file
- **intent_class** (int): Class id of intent
- **lang_id** (int): Id of language

### Data Splits
Every config only has the `"train"` split containing of *ca.* 600 examples.

## Dataset Creation

[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)

## Considerations for Using the Data

### Social Impact of Dataset

[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)

### Discussion of Biases

[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)

### Other Known Limitations

[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)

## Additional Information

### Dataset Curators

[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)

### Licensing Information

All datasets are licensed under the [Creative Commons license (CC-BY)](https://creativecommons.org/licenses/).

### Citation Information

```
@article{DBLP:journals/corr/abs-2104-08524,
  author    = {Daniela Gerz and
               Pei{-}Hao Su and
               Razvan Kusztos and
               Avishek Mondal and
               Michal Lis and
               Eshan Singhal and
               Nikola Mrksic and
               Tsung{-}Hsien Wen and
               Ivan Vulic},
  title     = {Multilingual and Cross-Lingual Intent Detection from Spoken Data},
  journal   = {CoRR},
  volume    = {abs/2104.08524},
  year      = {2021},
  url       = {https://arxiv.org/abs/2104.08524},
  eprinttype = {arXiv},
  eprint    = {2104.08524},
  timestamp = {Mon, 26 Apr 2021 17:25:10 +0200},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2104-08524.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}
```

### Contributions

Thanks to [@patrickvonplaten](https://github.com/patrickvonplaten) for adding this dataset