jonatasgrosman commited on
Commit
b46b5eb
1 Parent(s): 525d5c6

jonatasgrosman/exp_w2v2r_fr_xls-r_age_teens-2_sixties-8_s598

Browse files
.gitattributes CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ cv7_transcriptions.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - fr
4
+ license: apache-2.0
5
+ tags:
6
+ - automatic-speech-recognition
7
+ - fr
8
+ datasets:
9
+ - mozilla-foundation/common_voice_7_0
10
+ ---
11
+ # exp_w2v2r_fr_xls-r_age_teens-2_sixties-8_s598
12
+
13
+ Fine-tuned [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) for speech recognition using the train split of [Common Voice 7.0 (fr)](https://huggingface.co/datasets/mozilla-foundation/common_voice_7_0).
14
+ When using this model, make sure that your speech input is sampled at 16kHz.
15
+
16
+ This model has been fine-tuned by the [HuggingSound](https://github.com/jonatasgrosman/huggingsound) tool.
17
+
config.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/wav2vec2-xls-r-300m",
3
+ "activation_dropout": 0.05,
4
+ "adapter_kernel_size": 3,
5
+ "adapter_stride": 2,
6
+ "add_adapter": false,
7
+ "apply_spec_augment": true,
8
+ "architectures": [
9
+ "Wav2Vec2ForCTC"
10
+ ],
11
+ "attention_dropout": 0.05,
12
+ "bos_token_id": 1,
13
+ "classifier_proj_size": 256,
14
+ "codevector_dim": 768,
15
+ "contrastive_logits_temperature": 0.1,
16
+ "conv_bias": true,
17
+ "conv_dim": [
18
+ 512,
19
+ 512,
20
+ 512,
21
+ 512,
22
+ 512,
23
+ 512,
24
+ 512
25
+ ],
26
+ "conv_kernel": [
27
+ 10,
28
+ 3,
29
+ 3,
30
+ 3,
31
+ 3,
32
+ 2,
33
+ 2
34
+ ],
35
+ "conv_stride": [
36
+ 5,
37
+ 2,
38
+ 2,
39
+ 2,
40
+ 2,
41
+ 2,
42
+ 2
43
+ ],
44
+ "ctc_loss_reduction": "mean",
45
+ "ctc_zero_infinity": false,
46
+ "diversity_loss_weight": 0.1,
47
+ "do_stable_layer_norm": true,
48
+ "eos_token_id": 2,
49
+ "feat_extract_activation": "gelu",
50
+ "feat_extract_dropout": 0.0,
51
+ "feat_extract_norm": "layer",
52
+ "feat_proj_dropout": 0.05,
53
+ "feat_quantizer_dropout": 0.0,
54
+ "final_dropout": 0.05,
55
+ "gradient_checkpointing": false,
56
+ "hidden_act": "gelu",
57
+ "hidden_dropout": 0.05,
58
+ "hidden_size": 1024,
59
+ "initializer_range": 0.02,
60
+ "intermediate_size": 4096,
61
+ "layer_norm_eps": 1e-05,
62
+ "layerdrop": 0.05,
63
+ "mask_feature_length": 10,
64
+ "mask_feature_min_masks": 0,
65
+ "mask_feature_prob": 0.0,
66
+ "mask_time_length": 10,
67
+ "mask_time_min_masks": 2,
68
+ "mask_time_prob": 0.05,
69
+ "model_type": "wav2vec2",
70
+ "num_adapter_layers": 3,
71
+ "num_attention_heads": 16,
72
+ "num_codevector_groups": 2,
73
+ "num_codevectors_per_group": 320,
74
+ "num_conv_pos_embedding_groups": 16,
75
+ "num_conv_pos_embeddings": 128,
76
+ "num_feat_extract_layers": 7,
77
+ "num_hidden_layers": 24,
78
+ "num_negatives": 100,
79
+ "output_hidden_size": 1024,
80
+ "pad_token_id": 0,
81
+ "proj_codevector_dim": 768,
82
+ "tdnn_dilation": [
83
+ 1,
84
+ 2,
85
+ 3,
86
+ 1,
87
+ 1
88
+ ],
89
+ "tdnn_dim": [
90
+ 512,
91
+ 512,
92
+ 512,
93
+ 512,
94
+ 1500
95
+ ],
96
+ "tdnn_kernel": [
97
+ 5,
98
+ 3,
99
+ 3,
100
+ 1,
101
+ 1
102
+ ],
103
+ "torch_dtype": "float32",
104
+ "transformers_version": "4.18.0",
105
+ "use_weighted_layer_sum": false,
106
+ "vocab_size": 57,
107
+ "xvector_output_dim": 512
108
+ }
cv7_evaluation.json ADDED
@@ -0,0 +1,444 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "validation": [
3
+ {
4
+ "subset_type": "all",
5
+ "subset": "all",
6
+ "cer": 0.07582793019309085,
7
+ "wer": 0.26568859864919264
8
+ },
9
+ {
10
+ "subset_type": "age",
11
+ "subset": "",
12
+ "cer": 0.07385368363491106,
13
+ "wer": 0.26045582890036345
14
+ },
15
+ {
16
+ "subset_type": "age",
17
+ "subset": "seventies",
18
+ "cer": 0.07429301805400224,
19
+ "wer": 0.28065134099616856
20
+ },
21
+ {
22
+ "subset_type": "age",
23
+ "subset": "eighties",
24
+ "cer": 0.09714285714285714,
25
+ "wer": 0.2413793103448276
26
+ },
27
+ {
28
+ "subset_type": "age",
29
+ "subset": "teens",
30
+ "cer": 0.08907213899030593,
31
+ "wer": 0.3005504587155963
32
+ },
33
+ {
34
+ "subset_type": "age",
35
+ "subset": "twenties",
36
+ "cer": 0.09002730277338698,
37
+ "wer": 0.3014635188548232
38
+ },
39
+ {
40
+ "subset_type": "age",
41
+ "subset": "thirties",
42
+ "cer": 0.08552580519984478,
43
+ "wer": 0.29220579174368455
44
+ },
45
+ {
46
+ "subset_type": "age",
47
+ "subset": "fifties",
48
+ "cer": 0.08201211919980078,
49
+ "wer": 0.2731829573934837
50
+ },
51
+ {
52
+ "subset_type": "age",
53
+ "subset": "fourties",
54
+ "cer": 0.08162787978014267,
55
+ "wer": 0.28462073764787754
56
+ },
57
+ {
58
+ "subset_type": "age",
59
+ "subset": "sixties",
60
+ "cer": 0.07121392130826752,
61
+ "wer": 0.24743150684931506
62
+ },
63
+ {
64
+ "subset_type": "gender",
65
+ "subset": "male",
66
+ "cer": 0.08297604799490962,
67
+ "wer": 0.2836956032581792
68
+ },
69
+ {
70
+ "subset_type": "gender",
71
+ "subset": "",
72
+ "cer": 0.07383845197573652,
73
+ "wer": 0.2604244635728543
74
+ },
75
+ {
76
+ "subset_type": "gender",
77
+ "subset": "other",
78
+ "cer": 0.0866067203028869,
79
+ "wer": 0.2774566473988439
80
+ },
81
+ {
82
+ "subset_type": "gender",
83
+ "subset": "female",
84
+ "cer": 0.09256879126015073,
85
+ "wer": 0.3134249471458774
86
+ },
87
+ {
88
+ "subset_type": "accent",
89
+ "subset": "",
90
+ "cer": 0.07462011817282935,
91
+ "wer": 0.26265010698811325
92
+ },
93
+ {
94
+ "subset_type": "accent",
95
+ "subset": "gabon",
96
+ "cer": 0.07407407407407407,
97
+ "wer": 0.20833333333333334
98
+ },
99
+ {
100
+ "subset_type": "accent",
101
+ "subset": "martinique",
102
+ "cer": 0.07258064516129033,
103
+ "wer": 0.3157894736842105
104
+ },
105
+ {
106
+ "subset_type": "accent",
107
+ "subset": "luxembourg",
108
+ "cer": 0.09473684210526316,
109
+ "wer": 0.3333333333333333
110
+ },
111
+ {
112
+ "subset_type": "accent",
113
+ "subset": "mayotte",
114
+ "cer": 0.008583690987124463,
115
+ "wer": 0.07894736842105263
116
+ },
117
+ {
118
+ "subset_type": "accent",
119
+ "subset": "united_states",
120
+ "cer": 0.10610766045548654,
121
+ "wer": 0.31384615384615383
122
+ },
123
+ {
124
+ "subset_type": "accent",
125
+ "subset": "belgium",
126
+ "cer": 0.09354792355223451,
127
+ "wer": 0.2957983193277311
128
+ },
129
+ {
130
+ "subset_type": "accent",
131
+ "subset": "algeria",
132
+ "cer": 0.11301859799713877,
133
+ "wer": 0.4
134
+ },
135
+ {
136
+ "subset_type": "accent",
137
+ "subset": "germany",
138
+ "cer": 0.07214765100671142,
139
+ "wer": 0.29245283018867924
140
+ },
141
+ {
142
+ "subset_type": "accent",
143
+ "subset": "romania",
144
+ "cer": 0.15891472868217055,
145
+ "wer": 0.6
146
+ },
147
+ {
148
+ "subset_type": "accent",
149
+ "subset": "monaco",
150
+ "cer": 0.01639344262295082,
151
+ "wer": 0.1111111111111111
152
+ },
153
+ {
154
+ "subset_type": "accent",
155
+ "subset": "france",
156
+ "cer": 0.07634280027927356,
157
+ "wer": 0.26838535904958877
158
+ },
159
+ {
160
+ "subset_type": "accent",
161
+ "subset": "senegal",
162
+ "cer": 0.1258741258741259,
163
+ "wer": 0.44
164
+ },
165
+ {
166
+ "subset_type": "accent",
167
+ "subset": "canada",
168
+ "cer": 0.12721502248082517,
169
+ "wer": 0.379601226993865
170
+ },
171
+ {
172
+ "subset_type": "accent",
173
+ "subset": "st_pierre_et_miquelon",
174
+ "cer": 0.1951219512195122,
175
+ "wer": 0.6875
176
+ },
177
+ {
178
+ "subset_type": "accent",
179
+ "subset": "switzerland",
180
+ "cer": 0.07538389948813401,
181
+ "wer": 0.2548476454293629
182
+ },
183
+ {
184
+ "subset_type": "accent",
185
+ "subset": "cote_d_ivoire",
186
+ "cer": 0.23067173637515842,
187
+ "wer": 0.5909090909090909
188
+ },
189
+ {
190
+ "subset_type": "accent",
191
+ "subset": "cameroon",
192
+ "cer": 0.18585858585858586,
193
+ "wer": 0.5180722891566265
194
+ },
195
+ {
196
+ "subset_type": "accent",
197
+ "subset": "morocco",
198
+ "cer": 0.056856187290969896,
199
+ "wer": 0.19230769230769232
200
+ },
201
+ {
202
+ "subset_type": "accent",
203
+ "subset": "tunisia",
204
+ "cer": 0.17567567567567569,
205
+ "wer": 0.4583333333333333
206
+ },
207
+ {
208
+ "subset_type": "accent",
209
+ "subset": "guadeloupe",
210
+ "cer": 0.08362779740871613,
211
+ "wer": 0.3125
212
+ },
213
+ {
214
+ "subset_type": "accent",
215
+ "subset": "italy",
216
+ "cer": 0.15157894736842106,
217
+ "wer": 0.4177215189873418
218
+ },
219
+ {
220
+ "subset_type": "accent",
221
+ "subset": "united_kingdom",
222
+ "cer": 0.14022140221402213,
223
+ "wer": 0.45652173913043476
224
+ }
225
+ ],
226
+ "test": [
227
+ {
228
+ "subset_type": "all",
229
+ "subset": "all",
230
+ "cer": 0.08631732536619567,
231
+ "wer": 0.284394191949601
232
+ },
233
+ {
234
+ "subset_type": "age",
235
+ "subset": "",
236
+ "cer": 0.08509732981263464,
237
+ "wer": 0.2815573800508287
238
+ },
239
+ {
240
+ "subset_type": "age",
241
+ "subset": "seventies",
242
+ "cer": 0.07705334462320068,
243
+ "wer": 0.25084745762711863
244
+ },
245
+ {
246
+ "subset_type": "age",
247
+ "subset": "teens",
248
+ "cer": 0.09714541921984755,
249
+ "wer": 0.31700680272108844
250
+ },
251
+ {
252
+ "subset_type": "age",
253
+ "subset": "twenties",
254
+ "cer": 0.10313603227729128,
255
+ "wer": 0.32073404546699535
256
+ },
257
+ {
258
+ "subset_type": "age",
259
+ "subset": "thirties",
260
+ "cer": 0.09795420674705324,
261
+ "wer": 0.31515812431842966
262
+ },
263
+ {
264
+ "subset_type": "age",
265
+ "subset": "fifties",
266
+ "cer": 0.0843338213762811,
267
+ "wer": 0.2847682119205298
268
+ },
269
+ {
270
+ "subset_type": "age",
271
+ "subset": "fourties",
272
+ "cer": 0.08478676718802745,
273
+ "wer": 0.27785145888594165
274
+ },
275
+ {
276
+ "subset_type": "age",
277
+ "subset": "sixties",
278
+ "cer": 0.0828666565763584,
279
+ "wer": 0.2734303912647862
280
+ },
281
+ {
282
+ "subset_type": "gender",
283
+ "subset": "male",
284
+ "cer": 0.09358843883574192,
285
+ "wer": 0.2997625281617244
286
+ },
287
+ {
288
+ "subset_type": "gender",
289
+ "subset": "female",
290
+ "cer": 0.09502038328189888,
291
+ "wer": 0.31133593929639
292
+ },
293
+ {
294
+ "subset_type": "gender",
295
+ "subset": "other",
296
+ "cer": 0.14565963707699853,
297
+ "wer": 0.38823529411764707
298
+ },
299
+ {
300
+ "subset_type": "gender",
301
+ "subset": "",
302
+ "cer": 0.08502518958992222,
303
+ "wer": 0.281431780433017
304
+ },
305
+ {
306
+ "subset_type": "accent",
307
+ "subset": "",
308
+ "cer": 0.0859485907894986,
309
+ "wer": 0.2834233361355314
310
+ },
311
+ {
312
+ "subset_type": "accent",
313
+ "subset": "martinique",
314
+ "cer": 0.03508771929824561,
315
+ "wer": 0.18421052631578946
316
+ },
317
+ {
318
+ "subset_type": "accent",
319
+ "subset": "united_states",
320
+ "cer": 0.22760155815247635,
321
+ "wer": 0.5641025641025641
322
+ },
323
+ {
324
+ "subset_type": "accent",
325
+ "subset": "belgium",
326
+ "cer": 0.07277363672028246,
327
+ "wer": 0.2727272727272727
328
+ },
329
+ {
330
+ "subset_type": "accent",
331
+ "subset": "algeria",
332
+ "cer": 0.07899461400359066,
333
+ "wer": 0.27419354838709675
334
+ },
335
+ {
336
+ "subset_type": "accent",
337
+ "subset": "germany",
338
+ "cer": 0.11590296495956873,
339
+ "wer": 0.340080971659919
340
+ },
341
+ {
342
+ "subset_type": "accent",
343
+ "subset": "romania",
344
+ "cer": 0.13740458015267176,
345
+ "wer": 0.3181818181818182
346
+ },
347
+ {
348
+ "subset_type": "accent",
349
+ "subset": "monaco",
350
+ "cer": 0.07598784194528875,
351
+ "wer": 0.22641509433962265
352
+ },
353
+ {
354
+ "subset_type": "accent",
355
+ "subset": "france",
356
+ "cer": 0.08184593416873877,
357
+ "wer": 0.27566004153070306
358
+ },
359
+ {
360
+ "subset_type": "accent",
361
+ "subset": "senegal",
362
+ "cer": 0.12084592145015106,
363
+ "wer": 0.3805309734513274
364
+ },
365
+ {
366
+ "subset_type": "accent",
367
+ "subset": "burundi",
368
+ "cer": 0.09523809523809523,
369
+ "wer": 0.2857142857142857
370
+ },
371
+ {
372
+ "subset_type": "accent",
373
+ "subset": "benin",
374
+ "cer": 0.09090909090909091,
375
+ "wer": 0.2894736842105263
376
+ },
377
+ {
378
+ "subset_type": "accent",
379
+ "subset": "new_caledonia",
380
+ "cer": 0.1070110701107011,
381
+ "wer": 0.3902439024390244
382
+ },
383
+ {
384
+ "subset_type": "accent",
385
+ "subset": "canada",
386
+ "cer": 0.1409233399829011,
387
+ "wer": 0.40084745762711865
388
+ },
389
+ {
390
+ "subset_type": "accent",
391
+ "subset": "switzerland",
392
+ "cer": 0.07357449417535254,
393
+ "wer": 0.2773722627737226
394
+ },
395
+ {
396
+ "subset_type": "accent",
397
+ "subset": "cote_d_ivoire",
398
+ "cer": 0.13553530751708429,
399
+ "wer": 0.45454545454545453
400
+ },
401
+ {
402
+ "subset_type": "accent",
403
+ "subset": "reunion",
404
+ "cer": 0.08150470219435736,
405
+ "wer": 0.2037037037037037
406
+ },
407
+ {
408
+ "subset_type": "accent",
409
+ "subset": "cameroon",
410
+ "cer": 0.14666666666666667,
411
+ "wer": 0.42857142857142855
412
+ },
413
+ {
414
+ "subset_type": "accent",
415
+ "subset": "morocco",
416
+ "cer": 0.07703081232492998,
417
+ "wer": 0.25
418
+ },
419
+ {
420
+ "subset_type": "accent",
421
+ "subset": "tunisia",
422
+ "cer": 0.13577981651376148,
423
+ "wer": 0.32978723404255317
424
+ },
425
+ {
426
+ "subset_type": "accent",
427
+ "subset": "guadeloupe",
428
+ "cer": 0.011857707509881422,
429
+ "wer": 0.07142857142857142
430
+ },
431
+ {
432
+ "subset_type": "accent",
433
+ "subset": "other",
434
+ "cer": 0.028037383177570093,
435
+ "wer": 0.1
436
+ },
437
+ {
438
+ "subset_type": "accent",
439
+ "subset": "united_kingdom",
440
+ "cer": 0.2571428571428571,
441
+ "wer": 0.4444444444444444
442
+ }
443
+ ]
444
+ }
cv7_transcriptions.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddc953604ed845a34284a55faf49908261af6dd35daacc70308416d8da3e9932
3
+ size 130462732
preprocessor_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0,
7
+ "processor_class": "Wav2Vec2Processor",
8
+ "return_attention_mask": true,
9
+ "sampling_rate": 16000
10
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5da1e53bbca80ef99740de46aa116f567505dbbd87ae41f1b94b798f9c34171e
3
+ size 1262132401
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>"}
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "pad_token": "<pad>", "do_lower_case": false, "word_delimiter_token": "|", "replace_word_delimiter_char": " ", "special_tokens_map_file": null, "name_or_path": "/tmp/tmps4qdlhbu", "tokenizer_class": "Wav2Vec2CTCTokenizer", "processor_class": "Wav2Vec2Processor"}
vocab.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"<pad>": 0, "<s>": 1, "</s>": 2, "<unk>": 3, "|": 4, "'": 5, "-": 6, "a": 7, "b": 8, "c": 9, "d": 10, "e": 11, "f": 12, "g": 13, "h": 14, "i": 15, "j": 16, "k": 17, "l": 18, "m": 19, "n": 20, "o": 21, "p": 22, "q": 23, "r": 24, "s": 25, "t": 26, "u": 27, "v": 28, "w": 29, "x": 30, "y": 31, "z": 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}