jonatasgrosman commited on
Commit
cecaedc
1 Parent(s): 615bcfe

jonatasgrosman/exp_w2v2r_es_vp-100k_age_teens-0_sixties-10_s666

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_vp-100k_age_teens-0_sixties-10_s666
12
+
13
+ Fine-tuned [facebook/wav2vec2-large-100k-voxpopuli](https://huggingface.co/facebook/wav2vec2-large-100k-voxpopuli) 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,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/wav2vec2-large-100k-voxpopuli",
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_channel_length": 10,
64
+ "mask_channel_min_space": 1,
65
+ "mask_channel_other": 0.0,
66
+ "mask_channel_prob": 0.0,
67
+ "mask_channel_selection": "static",
68
+ "mask_feature_length": 10,
69
+ "mask_feature_min_masks": 0,
70
+ "mask_feature_prob": 0.0,
71
+ "mask_time_length": 10,
72
+ "mask_time_min_masks": 2,
73
+ "mask_time_min_space": 1,
74
+ "mask_time_other": 0.0,
75
+ "mask_time_prob": 0.05,
76
+ "mask_time_selection": "static",
77
+ "model_type": "wav2vec2",
78
+ "num_adapter_layers": 3,
79
+ "num_attention_heads": 16,
80
+ "num_codevector_groups": 2,
81
+ "num_codevectors_per_group": 320,
82
+ "num_conv_pos_embedding_groups": 16,
83
+ "num_conv_pos_embeddings": 128,
84
+ "num_feat_extract_layers": 7,
85
+ "num_hidden_layers": 24,
86
+ "num_negatives": 100,
87
+ "output_hidden_size": 1024,
88
+ "pad_token_id": 0,
89
+ "proj_codevector_dim": 768,
90
+ "tdnn_dilation": [
91
+ 1,
92
+ 2,
93
+ 3,
94
+ 1,
95
+ 1
96
+ ],
97
+ "tdnn_dim": [
98
+ 512,
99
+ 512,
100
+ 512,
101
+ 512,
102
+ 1500
103
+ ],
104
+ "tdnn_kernel": [
105
+ 5,
106
+ 3,
107
+ 3,
108
+ 1,
109
+ 1
110
+ ],
111
+ "torch_dtype": "float32",
112
+ "transformers_version": "4.18.0",
113
+ "use_weighted_layer_sum": false,
114
+ "vocab_size": 41,
115
+ "xvector_output_dim": 512
116
+ }
cv7_evaluation.json ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "validation": [
3
+ {
4
+ "subset_type": "all",
5
+ "subset": "all",
6
+ "cer": 0.06954169581912438,
7
+ "wer": 0.23376992038447827
8
+ },
9
+ {
10
+ "subset_type": "age",
11
+ "subset": "",
12
+ "cer": 0.06946034805283147,
13
+ "wer": 0.23332115020102168
14
+ },
15
+ {
16
+ "subset_type": "age",
17
+ "subset": "thirties",
18
+ "cer": 0.06805737214303133,
19
+ "wer": 0.23443901149729088
20
+ },
21
+ {
22
+ "subset_type": "age",
23
+ "subset": "sixties",
24
+ "cer": 0.08385246712152675,
25
+ "wer": 0.23422897196261683
26
+ },
27
+ {
28
+ "subset_type": "age",
29
+ "subset": "seventies",
30
+ "cer": 0.0532258064516129,
31
+ "wer": 0.19811320754716982
32
+ },
33
+ {
34
+ "subset_type": "age",
35
+ "subset": "fifties",
36
+ "cer": 0.06614394853236831,
37
+ "wer": 0.22351524879614768
38
+ },
39
+ {
40
+ "subset_type": "age",
41
+ "subset": "twenties",
42
+ "cer": 0.07306357527874179,
43
+ "wer": 0.24340219069322944
44
+ },
45
+ {
46
+ "subset_type": "age",
47
+ "subset": "teens",
48
+ "cer": 0.06930311068242102,
49
+ "wer": 0.24755606670500288
50
+ },
51
+ {
52
+ "subset_type": "age",
53
+ "subset": "fourties",
54
+ "cer": 0.06146737608513021,
55
+ "wer": 0.2130115424973767
56
+ },
57
+ {
58
+ "subset_type": "gender",
59
+ "subset": "",
60
+ "cer": 0.06933193800203644,
61
+ "wer": 0.23299719270272334
62
+ },
63
+ {
64
+ "subset_type": "gender",
65
+ "subset": "male",
66
+ "cer": 0.0703847474871848,
67
+ "wer": 0.23437560540896588
68
+ },
69
+ {
70
+ "subset_type": "gender",
71
+ "subset": "other",
72
+ "cer": 0.09390096618357488,
73
+ "wer": 0.3508137432188065
74
+ },
75
+ {
76
+ "subset_type": "gender",
77
+ "subset": "female",
78
+ "cer": 0.06808421249183083,
79
+ "wer": 0.2352614787071716
80
+ },
81
+ {
82
+ "subset_type": "accent",
83
+ "subset": "",
84
+ "cer": 0.06918807810894141,
85
+ "wer": 0.23327184836534792
86
+ },
87
+ {
88
+ "subset_type": "accent",
89
+ "subset": "chileno",
90
+ "cer": 0.09393482546677491,
91
+ "wer": 0.2864976010966415
92
+ },
93
+ {
94
+ "subset_type": "accent",
95
+ "subset": "nortepeninsular",
96
+ "cer": 0.061975591151792526,
97
+ "wer": 0.20728291316526612
98
+ },
99
+ {
100
+ "subset_type": "accent",
101
+ "subset": "canario",
102
+ "cer": 0.06382978723404255,
103
+ "wer": 0.21100917431192662
104
+ },
105
+ {
106
+ "subset_type": "accent",
107
+ "subset": "surpeninsular",
108
+ "cer": 0.07096548098826003,
109
+ "wer": 0.2277951933124347
110
+ },
111
+ {
112
+ "subset_type": "accent",
113
+ "subset": "caribe",
114
+ "cer": 0.06943827708703375,
115
+ "wer": 0.23889074507183428
116
+ },
117
+ {
118
+ "subset_type": "accent",
119
+ "subset": "mexicano",
120
+ "cer": 0.06623265692453309,
121
+ "wer": 0.2304077401520387
122
+ },
123
+ {
124
+ "subset_type": "accent",
125
+ "subset": "rioplatense",
126
+ "cer": 0.06732367608644027,
127
+ "wer": 0.22779369627507162
128
+ },
129
+ {
130
+ "subset_type": "accent",
131
+ "subset": "andino",
132
+ "cer": 0.07486059124589413,
133
+ "wer": 0.24448487605185354
134
+ },
135
+ {
136
+ "subset_type": "accent",
137
+ "subset": "centrosurpeninsular",
138
+ "cer": 0.07518616382416526,
139
+ "wer": 0.2225866916588566
140
+ },
141
+ {
142
+ "subset_type": "accent",
143
+ "subset": "americacentral",
144
+ "cer": 0.07985879209999046,
145
+ "wer": 0.2603926096997691
146
+ }
147
+ ],
148
+ "test": [
149
+ {
150
+ "subset_type": "all",
151
+ "subset": "all",
152
+ "cer": 0.08095321051958419,
153
+ "wer": 0.2565754266346897
154
+ },
155
+ {
156
+ "subset_type": "age",
157
+ "subset": "",
158
+ "cer": 0.08125310739144846,
159
+ "wer": 0.2569211669770329
160
+ },
161
+ {
162
+ "subset_type": "age",
163
+ "subset": "thirties",
164
+ "cer": 0.0813573652050267,
165
+ "wer": 0.25448275862068964
166
+ },
167
+ {
168
+ "subset_type": "age",
169
+ "subset": "sixties",
170
+ "cer": 0.07287213369607462,
171
+ "wer": 0.23990772779700115
172
+ },
173
+ {
174
+ "subset_type": "age",
175
+ "subset": "seventies",
176
+ "cer": 0.14760914760914762,
177
+ "wer": 0.4024390243902439
178
+ },
179
+ {
180
+ "subset_type": "age",
181
+ "subset": "fifties",
182
+ "cer": 0.06552240839122735,
183
+ "wer": 0.21921679450948728
184
+ },
185
+ {
186
+ "subset_type": "age",
187
+ "subset": "twenties",
188
+ "cer": 0.08162774381076476,
189
+ "wer": 0.2631389488840893
190
+ },
191
+ {
192
+ "subset_type": "age",
193
+ "subset": "eighties",
194
+ "cer": 0.04697986577181208,
195
+ "wer": 0.18518518518518517
196
+ },
197
+ {
198
+ "subset_type": "age",
199
+ "subset": "teens",
200
+ "cer": 0.09220192761339893,
201
+ "wer": 0.30565730565730564
202
+ },
203
+ {
204
+ "subset_type": "age",
205
+ "subset": "fourties",
206
+ "cer": 0.07234115284365253,
207
+ "wer": 0.22728442728442727
208
+ },
209
+ {
210
+ "subset_type": "gender",
211
+ "subset": "",
212
+ "cer": 0.0813772387755867,
213
+ "wer": 0.2572402308198753
214
+ },
215
+ {
216
+ "subset_type": "gender",
217
+ "subset": "male",
218
+ "cer": 0.07694017374834514,
219
+ "wer": 0.25118538221348446
220
+ },
221
+ {
222
+ "subset_type": "gender",
223
+ "subset": "other",
224
+ "cer": 0.14347202295552366,
225
+ "wer": 0.3565217391304348
226
+ },
227
+ {
228
+ "subset_type": "gender",
229
+ "subset": "female",
230
+ "cer": 0.0809554005495667,
231
+ "wer": 0.253276955602537
232
+ },
233
+ {
234
+ "subset_type": "accent",
235
+ "subset": "",
236
+ "cer": 0.08175160312996156,
237
+ "wer": 0.2583521402937586
238
+ },
239
+ {
240
+ "subset_type": "accent",
241
+ "subset": "chileno",
242
+ "cer": 0.06307834669956817,
243
+ "wer": 0.20768526989935956
244
+ },
245
+ {
246
+ "subset_type": "accent",
247
+ "subset": "nortepeninsular",
248
+ "cer": 0.06483867642511082,
249
+ "wer": 0.20886460230722526
250
+ },
251
+ {
252
+ "subset_type": "accent",
253
+ "subset": "canario",
254
+ "cer": 0.060699588477366256,
255
+ "wer": 0.2229299363057325
256
+ },
257
+ {
258
+ "subset_type": "accent",
259
+ "subset": "surpeninsular",
260
+ "cer": 0.061704211557296766,
261
+ "wer": 0.2325925925925926
262
+ },
263
+ {
264
+ "subset_type": "accent",
265
+ "subset": "caribe",
266
+ "cer": 0.09088918090232151,
267
+ "wer": 0.28186484174508125
268
+ },
269
+ {
270
+ "subset_type": "accent",
271
+ "subset": "mexicano",
272
+ "cer": 0.07776255707762557,
273
+ "wer": 0.23922775601566873
274
+ },
275
+ {
276
+ "subset_type": "accent",
277
+ "subset": "rioplatense",
278
+ "cer": 0.09583333333333334,
279
+ "wer": 0.28560775540641314
280
+ },
281
+ {
282
+ "subset_type": "accent",
283
+ "subset": "andino",
284
+ "cer": 0.06726233420278595,
285
+ "wer": 0.2368860674908119
286
+ },
287
+ {
288
+ "subset_type": "accent",
289
+ "subset": "centrosurpeninsular",
290
+ "cer": 0.053873078679044284,
291
+ "wer": 0.1982142857142857
292
+ },
293
+ {
294
+ "subset_type": "accent",
295
+ "subset": "americacentral",
296
+ "cer": 0.07628784899724735,
297
+ "wer": 0.25783699059561127
298
+ }
299
+ ]
300
+ }
cv7_transcriptions.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c9c0f4a9d73b9f44c2859a231451bda2bbb19c410c8d9636bd997233aed855c
3
+ size 124765764
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:f500bf5bce35ec28a468b8ad7789430e0b17a68d0b77a2771e7c7cb5fb2420ec
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/tmphutng9hz", "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}