jonatasgrosman commited on
Commit
965c53b
1 Parent(s): 4816de4

jonatasgrosman/exp_w2v2r_en_xls-r_age_teens-5_sixties-5_s279

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
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - automatic-speech-recognition
7
+ - en
8
+ datasets:
9
+ - mozilla-foundation/common_voice_7_0
10
+ ---
11
+ # exp_w2v2r_en_xls-r_age_teens-5_sixties-5_s279
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 (en)](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": 33,
107
+ "xvector_output_dim": 512
108
+ }
cv7_evaluation.json ADDED
@@ -0,0 +1,390 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "validation": [
3
+ {
4
+ "subset_type": "all",
5
+ "subset": "all",
6
+ "cer": 0.10696353874612474,
7
+ "wer": 0.30186296574143534
8
+ },
9
+ {
10
+ "subset_type": "age",
11
+ "subset": "",
12
+ "cer": 0.10549035253248427,
13
+ "wer": 0.2983692204351233
14
+ },
15
+ {
16
+ "subset_type": "age",
17
+ "subset": "sixties",
18
+ "cer": 0.07852154658490887,
19
+ "wer": 0.23376623376623376
20
+ },
21
+ {
22
+ "subset_type": "age",
23
+ "subset": "nineties",
24
+ "cer": 0.07692307692307693,
25
+ "wer": 0.2857142857142857
26
+ },
27
+ {
28
+ "subset_type": "age",
29
+ "subset": "fourties",
30
+ "cer": 0.09905422446406054,
31
+ "wer": 0.28717948717948716
32
+ },
33
+ {
34
+ "subset_type": "age",
35
+ "subset": "twenties",
36
+ "cer": 0.1281716006758246,
37
+ "wer": 0.3495571416286869
38
+ },
39
+ {
40
+ "subset_type": "age",
41
+ "subset": "teens",
42
+ "cer": 0.11143784222267289,
43
+ "wer": 0.31275720164609055
44
+ },
45
+ {
46
+ "subset_type": "age",
47
+ "subset": "eighties",
48
+ "cer": 0.0931899641577061,
49
+ "wer": 0.28846153846153844
50
+ },
51
+ {
52
+ "subset_type": "age",
53
+ "subset": "seventies",
54
+ "cer": 0.07209106239460371,
55
+ "wer": 0.25598086124401914
56
+ },
57
+ {
58
+ "subset_type": "age",
59
+ "subset": "thirties",
60
+ "cer": 0.11225838947302147,
61
+ "wer": 0.312922683238896
62
+ },
63
+ {
64
+ "subset_type": "age",
65
+ "subset": "fifties",
66
+ "cer": 0.08378305450620616,
67
+ "wer": 0.25770750988142294
68
+ },
69
+ {
70
+ "subset_type": "gender",
71
+ "subset": "",
72
+ "cer": 0.1055699515098648,
73
+ "wer": 0.2985842121368172
74
+ },
75
+ {
76
+ "subset_type": "gender",
77
+ "subset": "other",
78
+ "cer": 0.11572700296735905,
79
+ "wer": 0.32934131736526945
80
+ },
81
+ {
82
+ "subset_type": "gender",
83
+ "subset": "male",
84
+ "cer": 0.1151126751468974,
85
+ "wer": 0.32151422525276274
86
+ },
87
+ {
88
+ "subset_type": "gender",
89
+ "subset": "female",
90
+ "cer": 0.10928167243005345,
91
+ "wer": 0.30466605672461117
92
+ },
93
+ {
94
+ "subset_type": "accent",
95
+ "subset": "",
96
+ "cer": 0.10778820023637077,
97
+ "wer": 0.3032250386766631
98
+ },
99
+ {
100
+ "subset_type": "accent",
101
+ "subset": "australia",
102
+ "cer": 0.06726794438181134,
103
+ "wer": 0.22171945701357465
104
+ },
105
+ {
106
+ "subset_type": "accent",
107
+ "subset": "wales",
108
+ "cer": 0.08248587570621468,
109
+ "wer": 0.2638888888888889
110
+ },
111
+ {
112
+ "subset_type": "accent",
113
+ "subset": "singapore",
114
+ "cer": 0.16132723112128147,
115
+ "wer": 0.3116883116883117
116
+ },
117
+ {
118
+ "subset_type": "accent",
119
+ "subset": "england",
120
+ "cer": 0.09859154929577464,
121
+ "wer": 0.2929493545183714
122
+ },
123
+ {
124
+ "subset_type": "accent",
125
+ "subset": "indian",
126
+ "cer": 0.13812268423219431,
127
+ "wer": 0.3710162357185809
128
+ },
129
+ {
130
+ "subset_type": "accent",
131
+ "subset": "scotland",
132
+ "cer": 0.07295373665480427,
133
+ "wer": 0.2840909090909091
134
+ },
135
+ {
136
+ "subset_type": "accent",
137
+ "subset": "southatlandtic",
138
+ "cer": 0.14285714285714285,
139
+ "wer": 0.36363636363636365
140
+ },
141
+ {
142
+ "subset_type": "accent",
143
+ "subset": "ireland",
144
+ "cer": 0.11264822134387352,
145
+ "wer": 0.31496062992125984
146
+ },
147
+ {
148
+ "subset_type": "accent",
149
+ "subset": "us",
150
+ "cer": 0.08645260823450004,
151
+ "wer": 0.2605999097880018
152
+ },
153
+ {
154
+ "subset_type": "accent",
155
+ "subset": "newzealand",
156
+ "cer": 0.04926108374384237,
157
+ "wer": 0.2
158
+ },
159
+ {
160
+ "subset_type": "accent",
161
+ "subset": "other",
162
+ "cer": 0.10408921933085502,
163
+ "wer": 0.32
164
+ },
165
+ {
166
+ "subset_type": "accent",
167
+ "subset": "african",
168
+ "cer": 0.12884333821376281,
169
+ "wer": 0.3673469387755102
170
+ },
171
+ {
172
+ "subset_type": "accent",
173
+ "subset": "malaysia",
174
+ "cer": 0.15128205128205127,
175
+ "wer": 0.3333333333333333
176
+ },
177
+ {
178
+ "subset_type": "accent",
179
+ "subset": "hongkong",
180
+ "cer": 0.09392265193370165,
181
+ "wer": 0.2826086956521739
182
+ },
183
+ {
184
+ "subset_type": "accent",
185
+ "subset": "bermuda",
186
+ "cer": 0.06172839506172839,
187
+ "wer": 0.125
188
+ },
189
+ {
190
+ "subset_type": "accent",
191
+ "subset": "canada",
192
+ "cer": 0.07230142566191446,
193
+ "wer": 0.23621103117505995
194
+ },
195
+ {
196
+ "subset_type": "accent",
197
+ "subset": "philippines",
198
+ "cer": 0.15823914336704342,
199
+ "wer": 0.4117647058823529
200
+ }
201
+ ],
202
+ "test": [
203
+ {
204
+ "subset_type": "all",
205
+ "subset": "all",
206
+ "cer": 0.13912906812268253,
207
+ "wer": 0.3496632446217224
208
+ },
209
+ {
210
+ "subset_type": "age",
211
+ "subset": "",
212
+ "cer": 0.13770383635255287,
213
+ "wer": 0.3463764918873278
214
+ },
215
+ {
216
+ "subset_type": "age",
217
+ "subset": "sixties",
218
+ "cer": 0.14113873295910184,
219
+ "wer": 0.28854625550660795
220
+ },
221
+ {
222
+ "subset_type": "age",
223
+ "subset": "fourties",
224
+ "cer": 0.132195080720142,
225
+ "wer": 0.32847744360902253
226
+ },
227
+ {
228
+ "subset_type": "age",
229
+ "subset": "twenties",
230
+ "cer": 0.15253227408143,
231
+ "wer": 0.3821091740497285
232
+ },
233
+ {
234
+ "subset_type": "age",
235
+ "subset": "teens",
236
+ "cer": 0.14683272748942255,
237
+ "wer": 0.37678692988427503
238
+ },
239
+ {
240
+ "subset_type": "age",
241
+ "subset": "eighties",
242
+ "cer": 0.11428571428571428,
243
+ "wer": 0.48
244
+ },
245
+ {
246
+ "subset_type": "age",
247
+ "subset": "seventies",
248
+ "cer": 0.10427968655816756,
249
+ "wer": 0.27181208053691275
250
+ },
251
+ {
252
+ "subset_type": "age",
253
+ "subset": "thirties",
254
+ "cer": 0.1369073229498322,
255
+ "wer": 0.3595121951219512
256
+ },
257
+ {
258
+ "subset_type": "age",
259
+ "subset": "fifties",
260
+ "cer": 0.1910751206064783,
261
+ "wer": 0.41205053449951407
262
+ },
263
+ {
264
+ "subset_type": "gender",
265
+ "subset": "",
266
+ "cer": 0.13765322281885206,
267
+ "wer": 0.3463155733653707
268
+ },
269
+ {
270
+ "subset_type": "gender",
271
+ "subset": "other",
272
+ "cer": 0.1864171864171864,
273
+ "wer": 0.4046692607003891
274
+ },
275
+ {
276
+ "subset_type": "gender",
277
+ "subset": "male",
278
+ "cer": 0.14946121008370222,
279
+ "wer": 0.37393942799348207
280
+ },
281
+ {
282
+ "subset_type": "gender",
283
+ "subset": "female",
284
+ "cer": 0.13763429644310002,
285
+ "wer": 0.3479036574487065
286
+ },
287
+ {
288
+ "subset_type": "accent",
289
+ "subset": "",
290
+ "cer": 0.13953169227691128,
291
+ "wer": 0.35036632936536494
292
+ },
293
+ {
294
+ "subset_type": "accent",
295
+ "subset": "australia",
296
+ "cer": 0.0968950749464668,
297
+ "wer": 0.28662420382165604
298
+ },
299
+ {
300
+ "subset_type": "accent",
301
+ "subset": "singapore",
302
+ "cer": 0.13368983957219252,
303
+ "wer": 0.3939393939393939
304
+ },
305
+ {
306
+ "subset_type": "accent",
307
+ "subset": "wales",
308
+ "cer": 0.18493150684931506,
309
+ "wer": 0.375
310
+ },
311
+ {
312
+ "subset_type": "accent",
313
+ "subset": "indian",
314
+ "cer": 0.15697802197802196,
315
+ "wer": 0.38894125039271127
316
+ },
317
+ {
318
+ "subset_type": "accent",
319
+ "subset": "scotland",
320
+ "cer": 0.1388499298737728,
321
+ "wer": 0.3333333333333333
322
+ },
323
+ {
324
+ "subset_type": "accent",
325
+ "subset": "england",
326
+ "cer": 0.12343116908785454,
327
+ "wer": 0.33578292820802713
328
+ },
329
+ {
330
+ "subset_type": "accent",
331
+ "subset": "ireland",
332
+ "cer": 0.1081277213352685,
333
+ "wer": 0.3080168776371308
334
+ },
335
+ {
336
+ "subset_type": "accent",
337
+ "subset": "us",
338
+ "cer": 0.12297165729121592,
339
+ "wer": 0.32156503133119363
340
+ },
341
+ {
342
+ "subset_type": "accent",
343
+ "subset": "newzealand",
344
+ "cer": 0.10377358490566038,
345
+ "wer": 0.3161764705882353
346
+ },
347
+ {
348
+ "subset_type": "accent",
349
+ "subset": "other",
350
+ "cer": 0.2059282371294852,
351
+ "wer": 0.4247104247104247
352
+ },
353
+ {
354
+ "subset_type": "accent",
355
+ "subset": "african",
356
+ "cer": 0.17552657973921765,
357
+ "wer": 0.3930635838150289
358
+ },
359
+ {
360
+ "subset_type": "accent",
361
+ "subset": "malaysia",
362
+ "cer": 0.11310190369540873,
363
+ "wer": 0.2929936305732484
364
+ },
365
+ {
366
+ "subset_type": "accent",
367
+ "subset": "hongkong",
368
+ "cer": 0.24132947976878613,
369
+ "wer": 0.55
370
+ },
371
+ {
372
+ "subset_type": "accent",
373
+ "subset": "bermuda",
374
+ "cer": 0.11910112359550562,
375
+ "wer": 0.2857142857142857
376
+ },
377
+ {
378
+ "subset_type": "accent",
379
+ "subset": "canada",
380
+ "cer": 0.16782522343594836,
381
+ "wer": 0.3300561797752809
382
+ },
383
+ {
384
+ "subset_type": "accent",
385
+ "subset": "philippines",
386
+ "cer": 0.11204013377926421,
387
+ "wer": 0.32323232323232326
388
+ }
389
+ ]
390
+ }
cv7_transcriptions.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:faec70009d6e332155a19c1a1c8158e3399fb9ef3ac85b1a981cce58223bd911
3
+ size 123270535
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:5a908e5e5dc94aa443f38aa8fa1f1f5ecca1c87caa5f88be45225322cfec3942
3
+ size 1262034033
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/tmpmt5ksbsj", "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}