jonatasgrosman commited on
Commit
1091641
1 Parent(s): 22992d9

jonatasgrosman/exp_w2v2r_en_xls-r_gender_male-10_female-0_s682

Browse files
.gitattributes CHANGED
@@ -29,3 +29,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
32
+ 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_gender_male-10_female-0_s682
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.1004140052808769,
7
+ "wer": 0.28523380845211305
8
+ },
9
+ {
10
+ "subset_type": "age",
11
+ "subset": "",
12
+ "cer": 0.09906212838232219,
13
+ "wer": 0.2820464977422846
14
+ },
15
+ {
16
+ "subset_type": "age",
17
+ "subset": "sixties",
18
+ "cer": 0.07869187531936638,
19
+ "wer": 0.23976023976023977
20
+ },
21
+ {
22
+ "subset_type": "age",
23
+ "subset": "seventies",
24
+ "cer": 0.09865092748735245,
25
+ "wer": 0.284688995215311
26
+ },
27
+ {
28
+ "subset_type": "age",
29
+ "subset": "fourties",
30
+ "cer": 0.09129886506935687,
31
+ "wer": 0.27692307692307694
32
+ },
33
+ {
34
+ "subset_type": "age",
35
+ "subset": "thirties",
36
+ "cer": 0.10435685953535226,
37
+ "wer": 0.3006762931822336
38
+ },
39
+ {
40
+ "subset_type": "age",
41
+ "subset": "fifties",
42
+ "cer": 0.07582298974635726,
43
+ "wer": 0.24980237154150198
44
+ },
45
+ {
46
+ "subset_type": "age",
47
+ "subset": "teens",
48
+ "cer": 0.10271750152098966,
49
+ "wer": 0.28600823045267487
50
+ },
51
+ {
52
+ "subset_type": "age",
53
+ "subset": "twenties",
54
+ "cer": 0.12012047307720561,
55
+ "wer": 0.3241035342677788
56
+ },
57
+ {
58
+ "subset_type": "age",
59
+ "subset": "nineties",
60
+ "cer": 0.0,
61
+ "wer": 0.0
62
+ },
63
+ {
64
+ "subset_type": "age",
65
+ "subset": "eighties",
66
+ "cer": 0.1111111111111111,
67
+ "wer": 0.34615384615384615
68
+ },
69
+ {
70
+ "subset_type": "gender",
71
+ "subset": "",
72
+ "cer": 0.09914693280652692,
73
+ "wer": 0.2821948070363985
74
+ },
75
+ {
76
+ "subset_type": "gender",
77
+ "subset": "female",
78
+ "cer": 0.10460546997799434,
79
+ "wer": 0.2934583714547118
80
+ },
81
+ {
82
+ "subset_type": "gender",
83
+ "subset": "male",
84
+ "cer": 0.10746109640343514,
85
+ "wer": 0.3022807430049377
86
+ },
87
+ {
88
+ "subset_type": "gender",
89
+ "subset": "other",
90
+ "cer": 0.10435212660731949,
91
+ "wer": 0.31137724550898205
92
+ },
93
+ {
94
+ "subset_type": "accent",
95
+ "subset": "",
96
+ "cer": 0.10113154683246318,
97
+ "wer": 0.28631231142939145
98
+ },
99
+ {
100
+ "subset_type": "accent",
101
+ "subset": "african",
102
+ "cer": 0.13030746705710103,
103
+ "wer": 0.3294460641399417
104
+ },
105
+ {
106
+ "subset_type": "accent",
107
+ "subset": "bermuda",
108
+ "cer": 0.06172839506172839,
109
+ "wer": 0.125
110
+ },
111
+ {
112
+ "subset_type": "accent",
113
+ "subset": "scotland",
114
+ "cer": 0.08185053380782918,
115
+ "wer": 0.29545454545454547
116
+ },
117
+ {
118
+ "subset_type": "accent",
119
+ "subset": "malaysia",
120
+ "cer": 0.14358974358974358,
121
+ "wer": 0.3472222222222222
122
+ },
123
+ {
124
+ "subset_type": "accent",
125
+ "subset": "wales",
126
+ "cer": 0.06892655367231638,
127
+ "wer": 0.2569444444444444
128
+ },
129
+ {
130
+ "subset_type": "accent",
131
+ "subset": "canada",
132
+ "cer": 0.07596741344195519,
133
+ "wer": 0.24100719424460432
134
+ },
135
+ {
136
+ "subset_type": "accent",
137
+ "subset": "us",
138
+ "cer": 0.08217143959116768,
139
+ "wer": 0.2501127649977447
140
+ },
141
+ {
142
+ "subset_type": "accent",
143
+ "subset": "hongkong",
144
+ "cer": 0.10681399631675875,
145
+ "wer": 0.25
146
+ },
147
+ {
148
+ "subset_type": "accent",
149
+ "subset": "newzealand",
150
+ "cer": 0.059113300492610835,
151
+ "wer": 0.175
152
+ },
153
+ {
154
+ "subset_type": "accent",
155
+ "subset": "ireland",
156
+ "cer": 0.11725955204216074,
157
+ "wer": 0.33858267716535434
158
+ },
159
+ {
160
+ "subset_type": "accent",
161
+ "subset": "southatlandtic",
162
+ "cer": 0.08791208791208792,
163
+ "wer": 0.21212121212121213
164
+ },
165
+ {
166
+ "subset_type": "accent",
167
+ "subset": "other",
168
+ "cer": 0.08736059479553904,
169
+ "wer": 0.27
170
+ },
171
+ {
172
+ "subset_type": "accent",
173
+ "subset": "indian",
174
+ "cer": 0.12381638534376287,
175
+ "wer": 0.33764281419122066
176
+ },
177
+ {
178
+ "subset_type": "accent",
179
+ "subset": "england",
180
+ "cer": 0.09464101683270354,
181
+ "wer": 0.28053624627606755
182
+ },
183
+ {
184
+ "subset_type": "accent",
185
+ "subset": "australia",
186
+ "cer": 0.061255167230364525,
187
+ "wer": 0.20361990950226244
188
+ },
189
+ {
190
+ "subset_type": "accent",
191
+ "subset": "singapore",
192
+ "cer": 0.14187643020594964,
193
+ "wer": 0.33116883116883117
194
+ },
195
+ {
196
+ "subset_type": "accent",
197
+ "subset": "philippines",
198
+ "cer": 0.16121356335514575,
199
+ "wer": 0.43252595155709345
200
+ }
201
+ ],
202
+ "test": [
203
+ {
204
+ "subset_type": "all",
205
+ "subset": "all",
206
+ "cer": 0.12936731997229223,
207
+ "wer": 0.3282612960177859
208
+ },
209
+ {
210
+ "subset_type": "age",
211
+ "subset": "",
212
+ "cer": 0.12822190754576349,
213
+ "wer": 0.3253892789496505
214
+ },
215
+ {
216
+ "subset_type": "age",
217
+ "subset": "seventies",
218
+ "cer": 0.13803496081977096,
219
+ "wer": 0.3187919463087248
220
+ },
221
+ {
222
+ "subset_type": "age",
223
+ "subset": "sixties",
224
+ "cer": 0.13873295910184444,
225
+ "wer": 0.29295154185022027
226
+ },
227
+ {
228
+ "subset_type": "age",
229
+ "subset": "fourties",
230
+ "cer": 0.12678556335051983,
231
+ "wer": 0.31203007518796994
232
+ },
233
+ {
234
+ "subset_type": "age",
235
+ "subset": "thirties",
236
+ "cer": 0.12361242578091386,
237
+ "wer": 0.3258536585365854
238
+ },
239
+ {
240
+ "subset_type": "age",
241
+ "subset": "fifties",
242
+ "cer": 0.18349414197105446,
243
+ "wer": 0.3867832847424684
244
+ },
245
+ {
246
+ "subset_type": "age",
247
+ "subset": "teens",
248
+ "cer": 0.1419462487336869,
249
+ "wer": 0.36215112321307014
250
+ },
251
+ {
252
+ "subset_type": "age",
253
+ "subset": "twenties",
254
+ "cer": 0.13680900364117843,
255
+ "wer": 0.35486329427455465
256
+ },
257
+ {
258
+ "subset_type": "age",
259
+ "subset": "eighties",
260
+ "cer": 0.10285714285714286,
261
+ "wer": 0.4
262
+ },
263
+ {
264
+ "subset_type": "gender",
265
+ "subset": "",
266
+ "cer": 0.1281460462982941,
267
+ "wer": 0.32533665873335715
268
+ },
269
+ {
270
+ "subset_type": "gender",
271
+ "subset": "female",
272
+ "cer": 0.13471367476791488,
273
+ "wer": 0.33541480820695807
274
+ },
275
+ {
276
+ "subset_type": "gender",
277
+ "subset": "male",
278
+ "cer": 0.13667419230807148,
279
+ "wer": 0.34792380738326684
280
+ },
281
+ {
282
+ "subset_type": "gender",
283
+ "subset": "other",
284
+ "cer": 0.1683991683991684,
285
+ "wer": 0.36964980544747084
286
+ },
287
+ {
288
+ "subset_type": "accent",
289
+ "subset": "",
290
+ "cer": 0.12973049925548383,
291
+ "wer": 0.32886876916212054
292
+ },
293
+ {
294
+ "subset_type": "accent",
295
+ "subset": "african",
296
+ "cer": 0.14343029087261785,
297
+ "wer": 0.3179190751445087
298
+ },
299
+ {
300
+ "subset_type": "accent",
301
+ "subset": "bermuda",
302
+ "cer": 0.14157303370786517,
303
+ "wer": 0.35714285714285715
304
+ },
305
+ {
306
+ "subset_type": "accent",
307
+ "subset": "scotland",
308
+ "cer": 0.11220196353436185,
309
+ "wer": 0.2907801418439716
310
+ },
311
+ {
312
+ "subset_type": "accent",
313
+ "subset": "malaysia",
314
+ "cer": 0.08846584546472565,
315
+ "wer": 0.2611464968152866
316
+ },
317
+ {
318
+ "subset_type": "accent",
319
+ "subset": "wales",
320
+ "cer": 0.19863013698630136,
321
+ "wer": 0.4166666666666667
322
+ },
323
+ {
324
+ "subset_type": "accent",
325
+ "subset": "canada",
326
+ "cer": 0.17328699106256207,
327
+ "wer": 0.3258426966292135
328
+ },
329
+ {
330
+ "subset_type": "accent",
331
+ "subset": "us",
332
+ "cer": 0.11742752055387279,
333
+ "wer": 0.30261348005502064
334
+ },
335
+ {
336
+ "subset_type": "accent",
337
+ "subset": "hongkong",
338
+ "cer": 0.2239884393063584,
339
+ "wer": 0.5
340
+ },
341
+ {
342
+ "subset_type": "accent",
343
+ "subset": "newzealand",
344
+ "cer": 0.0862533692722372,
345
+ "wer": 0.29411764705882354
346
+ },
347
+ {
348
+ "subset_type": "accent",
349
+ "subset": "ireland",
350
+ "cer": 0.09869375907111756,
351
+ "wer": 0.2742616033755274
352
+ },
353
+ {
354
+ "subset_type": "accent",
355
+ "subset": "other",
356
+ "cer": 0.17784711388455537,
357
+ "wer": 0.3938223938223938
358
+ },
359
+ {
360
+ "subset_type": "accent",
361
+ "subset": "indian",
362
+ "cer": 0.13648351648351648,
363
+ "wer": 0.3559535029846057
364
+ },
365
+ {
366
+ "subset_type": "accent",
367
+ "subset": "england",
368
+ "cer": 0.11483348156932503,
369
+ "wer": 0.3250423968343697
370
+ },
371
+ {
372
+ "subset_type": "accent",
373
+ "subset": "australia",
374
+ "cer": 0.11402569593147752,
375
+ "wer": 0.321656050955414
376
+ },
377
+ {
378
+ "subset_type": "accent",
379
+ "subset": "singapore",
380
+ "cer": 0.1443850267379679,
381
+ "wer": 0.3333333333333333
382
+ },
383
+ {
384
+ "subset_type": "accent",
385
+ "subset": "philippines",
386
+ "cer": 0.11371237458193979,
387
+ "wer": 0.30303030303030304
388
+ }
389
+ ]
390
+ }
cv7_transcriptions.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1b1b2380dc0678a9d01e70ea9822dd47d481f4ac5b4122a20abc20c4bffb091
3
+ size 123612962
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:d4c63e5fc6e303eeb4c36dedd0edd0b5ae94d37db6dd0cea709b6765785a4d6c
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/tmpy0r3v55a", "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}