jonatasgrosman commited on
Commit
512f1e4
1 Parent(s): 4c42bd5

jonatasgrosman/exp_w2v2r_es_xls-r_age_teens-5_sixties-5_s530

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
+ - es
4
+ license: apache-2.0
5
+ tags:
6
+ - automatic-speech-recognition
7
+ - es
8
+ datasets:
9
+ - mozilla-foundation/common_voice_7_0
10
+ ---
11
+ # exp_w2v2r_es_xls-r_age_teens-5_sixties-5_s530
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 (es)](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": 41,
107
+ "xvector_output_dim": 512
108
+ }
cv7_evaluation.json ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "validation": [
3
+ {
4
+ "subset_type": "all",
5
+ "subset": "all",
6
+ "cer": 0.03729788394475449,
7
+ "wer": 0.13718163693737703
8
+ },
9
+ {
10
+ "subset_type": "age",
11
+ "subset": "",
12
+ "cer": 0.03729947281900119,
13
+ "wer": 0.13711123766457853
14
+ },
15
+ {
16
+ "subset_type": "age",
17
+ "subset": "twenties",
18
+ "cer": 0.039233060129464176,
19
+ "wer": 0.1432772182606778
20
+ },
21
+ {
22
+ "subset_type": "age",
23
+ "subset": "fourties",
24
+ "cer": 0.030733688042565106,
25
+ "wer": 0.11941238195173137
26
+ },
27
+ {
28
+ "subset_type": "age",
29
+ "subset": "thirties",
30
+ "cer": 0.036999268438670775,
31
+ "wer": 0.13730672657592177
32
+ },
33
+ {
34
+ "subset_type": "age",
35
+ "subset": "fifties",
36
+ "cer": 0.03605414823750167,
37
+ "wer": 0.13041733547351525
38
+ },
39
+ {
40
+ "subset_type": "age",
41
+ "subset": "sixties",
42
+ "cer": 0.04469494709779492,
43
+ "wer": 0.13901869158878505
44
+ },
45
+ {
46
+ "subset_type": "age",
47
+ "subset": "seventies",
48
+ "cer": 0.029838709677419355,
49
+ "wer": 0.12735849056603774
50
+ },
51
+ {
52
+ "subset_type": "age",
53
+ "subset": "teens",
54
+ "cer": 0.03708705088015433,
55
+ "wer": 0.144335825186889
56
+ },
57
+ {
58
+ "subset_type": "gender",
59
+ "subset": "",
60
+ "cer": 0.037236961194705286,
61
+ "wer": 0.13696387831087212
62
+ },
63
+ {
64
+ "subset_type": "gender",
65
+ "subset": "other",
66
+ "cer": 0.042874396135265704,
67
+ "wer": 0.15370705244122965
68
+ },
69
+ {
70
+ "subset_type": "gender",
71
+ "subset": "male",
72
+ "cer": 0.03817664556182724,
73
+ "wer": 0.13933124103994732
74
+ },
75
+ {
76
+ "subset_type": "gender",
77
+ "subset": "female",
78
+ "cer": 0.03470731024180749,
79
+ "wer": 0.13177971979470107
80
+ },
81
+ {
82
+ "subset_type": "accent",
83
+ "subset": "",
84
+ "cer": 0.03720319596857077,
85
+ "wer": 0.13686235847856507
86
+ },
87
+ {
88
+ "subset_type": "accent",
89
+ "subset": "caribe",
90
+ "cer": 0.036245559502664296,
91
+ "wer": 0.13364517206815904
92
+ },
93
+ {
94
+ "subset_type": "accent",
95
+ "subset": "mexicano",
96
+ "cer": 0.03693699933051689,
97
+ "wer": 0.13614374568071874
98
+ },
99
+ {
100
+ "subset_type": "accent",
101
+ "subset": "surpeninsular",
102
+ "cer": 0.04625898019975469,
103
+ "wer": 0.15569487983281086
104
+ },
105
+ {
106
+ "subset_type": "accent",
107
+ "subset": "chileno",
108
+ "cer": 0.04754725733503421,
109
+ "wer": 0.17135023989033585
110
+ },
111
+ {
112
+ "subset_type": "accent",
113
+ "subset": "canario",
114
+ "cer": 0.03301540719002201,
115
+ "wer": 0.14678899082568808
116
+ },
117
+ {
118
+ "subset_type": "accent",
119
+ "subset": "americacentral",
120
+ "cer": 0.03759183284037783,
121
+ "wer": 0.13568129330254042
122
+ },
123
+ {
124
+ "subset_type": "accent",
125
+ "subset": "nortepeninsular",
126
+ "cer": 0.03327612509534706,
127
+ "wer": 0.1226890756302521
128
+ },
129
+ {
130
+ "subset_type": "accent",
131
+ "subset": "andino",
132
+ "cer": 0.032694217401268044,
133
+ "wer": 0.1253127132135547
134
+ },
135
+ {
136
+ "subset_type": "accent",
137
+ "subset": "rioplatense",
138
+ "cer": 0.03805509380194728,
139
+ "wer": 0.14255014326647564
140
+ },
141
+ {
142
+ "subset_type": "accent",
143
+ "subset": "centrosurpeninsular",
144
+ "cer": 0.04684122027384098,
145
+ "wer": 0.1626054358013121
146
+ }
147
+ ],
148
+ "test": [
149
+ {
150
+ "subset_type": "all",
151
+ "subset": "all",
152
+ "cer": 0.04255553742408673,
153
+ "wer": 0.1498556412238453
154
+ },
155
+ {
156
+ "subset_type": "age",
157
+ "subset": "",
158
+ "cer": 0.04275511683791846,
159
+ "wer": 0.14986809435133458
160
+ },
161
+ {
162
+ "subset_type": "age",
163
+ "subset": "twenties",
164
+ "cer": 0.04345995790317731,
165
+ "wer": 0.15970722342212623
166
+ },
167
+ {
168
+ "subset_type": "age",
169
+ "subset": "fourties",
170
+ "cer": 0.03700380293124813,
171
+ "wer": 0.13745173745173744
172
+ },
173
+ {
174
+ "subset_type": "age",
175
+ "subset": "thirties",
176
+ "cer": 0.03885323392644403,
177
+ "wer": 0.14183908045977012
178
+ },
179
+ {
180
+ "subset_type": "age",
181
+ "subset": "fifties",
182
+ "cer": 0.0406620351450756,
183
+ "wer": 0.1303996770286637
184
+ },
185
+ {
186
+ "subset_type": "age",
187
+ "subset": "sixties",
188
+ "cer": 0.038087835211815003,
189
+ "wer": 0.13725490196078433
190
+ },
191
+ {
192
+ "subset_type": "age",
193
+ "subset": "seventies",
194
+ "cer": 0.09355509355509356,
195
+ "wer": 0.25609756097560976
196
+ },
197
+ {
198
+ "subset_type": "age",
199
+ "subset": "teens",
200
+ "cer": 0.04637056008627081,
201
+ "wer": 0.17134717134717134
202
+ },
203
+ {
204
+ "subset_type": "age",
205
+ "subset": "eighties",
206
+ "cer": 0.020134228187919462,
207
+ "wer": 0.037037037037037035
208
+ },
209
+ {
210
+ "subset_type": "gender",
211
+ "subset": "",
212
+ "cer": 0.042799921932859676,
213
+ "wer": 0.1500019364083498
214
+ },
215
+ {
216
+ "subset_type": "gender",
217
+ "subset": "other",
218
+ "cer": 0.0667144906743185,
219
+ "wer": 0.21304347826086956
220
+ },
221
+ {
222
+ "subset_type": "gender",
223
+ "subset": "male",
224
+ "cer": 0.041069547655170416,
225
+ "wer": 0.14889557071816814
226
+ },
227
+ {
228
+ "subset_type": "gender",
229
+ "subset": "female",
230
+ "cer": 0.04012541393644754,
231
+ "wer": 0.1463002114164905
232
+ },
233
+ {
234
+ "subset_type": "accent",
235
+ "subset": "",
236
+ "cer": 0.04293203025267353,
237
+ "wer": 0.1506160050316327
238
+ },
239
+ {
240
+ "subset_type": "accent",
241
+ "subset": "caribe",
242
+ "cer": 0.04416703168345744,
243
+ "wer": 0.15526090675791274
244
+ },
245
+ {
246
+ "subset_type": "accent",
247
+ "subset": "surpeninsular",
248
+ "cer": 0.04113614103819784,
249
+ "wer": 0.15851851851851853
250
+ },
251
+ {
252
+ "subset_type": "accent",
253
+ "subset": "mexicano",
254
+ "cer": 0.04009132420091324,
255
+ "wer": 0.1505316172355904
256
+ },
257
+ {
258
+ "subset_type": "accent",
259
+ "subset": "chileno",
260
+ "cer": 0.03578038247995065,
261
+ "wer": 0.12900274473924978
262
+ },
263
+ {
264
+ "subset_type": "accent",
265
+ "subset": "canario",
266
+ "cer": 0.043209876543209874,
267
+ "wer": 0.1592356687898089
268
+ },
269
+ {
270
+ "subset_type": "accent",
271
+ "subset": "americacentral",
272
+ "cer": 0.03958579106042732,
273
+ "wer": 0.14184952978056425
274
+ },
275
+ {
276
+ "subset_type": "accent",
277
+ "subset": "nortepeninsular",
278
+ "cer": 0.03597567261107102,
279
+ "wer": 0.12021857923497267
280
+ },
281
+ {
282
+ "subset_type": "accent",
283
+ "subset": "andino",
284
+ "cer": 0.03490759753593429,
285
+ "wer": 0.136986301369863
286
+ },
287
+ {
288
+ "subset_type": "accent",
289
+ "subset": "rioplatense",
290
+ "cer": 0.05012626262626262,
291
+ "wer": 0.16331096196868009
292
+ },
293
+ {
294
+ "subset_type": "accent",
295
+ "subset": "centrosurpeninsular",
296
+ "cer": 0.03348044437680718,
297
+ "wer": 0.12946428571428573
298
+ }
299
+ ]
300
+ }
cv7_transcriptions.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5757a0ef4a5a09fa2c34b18817991b259807b60b3601785634f95e2f27bcd3c3
3
+ size 125542227
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:0c5fda744c0fb1fd4d16ebe7173057dd6d06c37a86dc9901cece510ab6b122b0
3
+ size 1262066801
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/tmp5fokul2l", "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}