carlosdanielhernandezmena commited on
Commit
e5f8c1e
·
verified ·
1 Parent(s): 1269930

Adding information to the model card

Browse files
Files changed (1) hide show
  1. README.md +220 -3
README.md CHANGED
@@ -1,3 +1,220 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: ca
3
+ datasets:
4
+ - langtech-veu/catalan-verification-model-pkt-b
5
+ tags:
6
+ - audio
7
+ - automatic-speech-recognition
8
+ - spanish
9
+ - parakeet-rnnt-1.1b
10
+ - NeMo
11
+ - Projecte-AINA
12
+ - Barcelona-Supercomputing-Center
13
+ - BSC
14
+ - EuroHPC
15
+ license: apache-2.0
16
+ model-index:
17
+ - name: catalan-verification-model-pkt-b
18
+ results:
19
+ - task:
20
+ name: Automatic Speech Recognition
21
+ type: automatic-speech-recognition
22
+ dataset:
23
+ name: Common Voice 17.0 Catalan (Test)
24
+ type: mozilla-foundation/common_voice_17_0
25
+ split: test
26
+ args:
27
+ language: ca
28
+ metrics:
29
+ - name: WER
30
+ type: wer
31
+ value: 3.735
32
+ - task:
33
+ name: Automatic Speech Recognition
34
+ type: automatic-speech-recognition
35
+ dataset:
36
+ name: Common Voice 17.0 Catalan (Dev)
37
+ type: mozilla-foundation/common_voice_17_0
38
+ split: dev
39
+ args:
40
+ language: ca
41
+ metrics:
42
+ - name: WER
43
+ type: wer
44
+ value: 3.409
45
+ library_name: nemo
46
+ ---
47
+ # catalan-verification-model-pkt-b
48
+
49
+ ## Table of Contents
50
+ <details>
51
+ <summary>Click to expand</summary>
52
+
53
+ - [Paper](#paper)
54
+ - [Model Summary](#model-summary)
55
+ - [Intended Uses and Limitations](#intended-uses-and-limitations)
56
+ - [How to Get Started with the Model](#how-to-get-started-with-the-model)
57
+ - [Training Details](#training-details)
58
+ - [Citation](#citation)
59
+ - [Additional Information](#additional-information)
60
+
61
+ </details>
62
+
63
+ <!--
64
+ ## Paper
65
+
66
+ **PDF:** [Automatic Validation of the Non-Validated Spanish Speech Data of Common Voice 17.0](https://dspace.ut.ee/server/api/core/bitstreams/918ec35c-a079-4258-b20d-07275ea28ae4/content)
67
+ -->
68
+
69
+ ## Model Summary
70
+
71
+ We define verification models as ASR models specifically designed to assess the reliability of transcriptions. These models are particularly useful when no reference transcription is available, as they can generate hypotheses with a certain degree of confidence.
72
+
73
+ The core idea behind verification models is to train or fine-tune two or more ASR models on different datasets. If these models produce identical transcriptions for the same audio input, the result is likely to be accurate. Furthermore, if a verification model agrees with an existing reference transcription, this agreement can also be interpreted as a signal of reliability.
74
+
75
+ In this model card, we present Verification Model B for Catalan, available as ["catalan-verification-model-pkt-b"](https://huggingface.co/langtech-veu/catalan-verification-model-pkt-b). This acoustic model is based on ["nvidia/parakeet-rnnt-1.1b"]((https://huggingface.co/nvidia/parakeet-rnnt-1.1b)) and is designed for Automatic Speech Recognition in Catalan. It is intended to be used in tandem with Verification Model A, ["catalan-verification-model-pkt-a"](https://huggingface.co/langtech-veu/catalan-verification-model-pkt-a), to enable cross-verification and boost transcription confidence in unannotated or weakly supervised scenarios.
76
+
77
+ The datasets used to train models A and B were partitioned between the two models using the following pseudocode:
78
+
79
+ ```bash
80
+ 01: dataset_A = list
81
+ 02: dataset_B = list
82
+ 03: for index, recording in training_corpus:
83
+ 04: {
84
+ 05: if index is an even number:
85
+ 06: {
86
+ 07: dataset_A=dataset_A+recording[index]
87
+ 08: }
88
+ 09: else:
89
+ 10: {
90
+ 11: dataset_B=dataset_B+recording[index]
91
+ 12: }
92
+ 13: }
93
+ ```
94
+
95
+ ## Intended Uses and Limitations
96
+
97
+ This model is designed for the following scenarios:
98
+
99
+ * Verification of transcriptions: When two or more verification models produce the same output for a given audio segment, the transcription can be considered highly reliable. This is particularly useful in low-resource or weakly supervised settings.
100
+
101
+ * Transcription without references: In situations where no reference transcription exists, this model can still produce a hypothesis that -when corroborated by a second verification model- may be considered trustworthy.
102
+
103
+ * Data filtering and quality control: It can be used to automatically detect and retain high-confidence segments in large-scale speech datasets (e.g., for training or evaluation purposes).
104
+
105
+ * Human-in-the-loop workflows: These models can assist human annotators by flagging reliable transcriptions, helping reduce manual verification time.
106
+
107
+ As limitations, we identify the following:
108
+
109
+ * No ground-truth guarantee: Agreement between models does not guarantee correctness; it only increases the likelihood of reliability.
110
+
111
+ * Domain sensitivity: The accuracy and agreement rate may drop if used on speech data that differs significantly from the training domain (e.g., different accents, topics, or recording conditions).
112
+
113
+ * Designed for pairwise comparison: This model is intended to work in conjunction with at least one other verification model. Using it in isolation does not provide verification benefits.
114
+
115
+ * Language and model-specific: This particular model is optimized for Catalan and based on the Parakeet RNNT architecture. Performance in other languages or under different acoustic models may vary significantly.
116
+
117
+ ## How to Get Started with the Model
118
+
119
+ To see an updated and functional version of this code, please see the NVIDIA's official [repository](https://huggingface.co/nvidia/parakeet-rnnt-1.1b)
120
+
121
+ ### Installation
122
+
123
+ In order to use this model, you may install the [NVIDIA NeMo Framework](https://github.com/NVIDIA/NeMo):
124
+
125
+ Create a virtual environment:
126
+ ```bash
127
+ python -m venv /path/to/venv
128
+ ```
129
+ Activate the environment:
130
+ ```bash
131
+ source /path/to/venv/bin/activate
132
+ ```
133
+ Install the modules:
134
+ ```bash
135
+ BRANCH = 'main'
136
+ python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]
137
+ ```
138
+
139
+ ### For Inference
140
+ In order to transcribe audio in Spanish using this model, you can follow this example:
141
+
142
+ ```python
143
+ import nemo.collections.asr as nemo_asr
144
+
145
+ asr_model = nemo_asr.models.EncDecRNNTBPEModel.from_pretrained(model_name="projecte-aina/parakeet-rnnt-1.1b_cv17_es_ep18_1270h")
146
+
147
+ output = asr_model.transcribe(['YOUR_WAV_FILE.wav'])
148
+ print(output[0].text)
149
+
150
+ ```
151
+
152
+ ## Training Details
153
+
154
+ ### Training data
155
+
156
+ The specific datasets used to create the model are:
157
+
158
+ * [Mozilla Common Voice 17.0 (Catalan)](https://huggingface.co/datasets/mozilla-foundation/common_voice_17_0)
159
+ * [3CatParla](https://huggingface.co/datasets/projecte-aina/3catparla_asr) (Soon to be published).
160
+ * [Corts Valencianes](https://huggingface.co/datasets/projecte-aina/corts_valencianes_asr_a)
161
+
162
+ ### Training procedure
163
+
164
+ This model is the result of finetuning the model ["parakeet-rnnt-1.1b"](https://huggingface.co/nvidia/parakeet-rnnt-1.1b) by following this [tutorial](https://github.com/NVIDIA/NeMo/blob/main/tutorials/asr/Transducers_with_HF_Datasets.ipynb)
165
+
166
+ ### Training Hyperparameters
167
+
168
+ * language: catalan
169
+ * hours of training audio: 1799
170
+ * learning rate: 2e-4
171
+ * devices=4
172
+ * num_nodes=8
173
+ * batch_size=8
174
+ * accelerator=accelerator
175
+ * strategy="ddp"
176
+ * max_epochs=20
177
+ * enable_checkpointing=True
178
+ * logger=False
179
+ * log_every_n_steps=100
180
+ * check_val_every_n_epoch=1
181
+ * precision='bf16-mixed'
182
+ * callbacks=[checkpoint_callback]
183
+
184
+ ## Citation
185
+ If this model contributes to your research, please cite the work:
186
+
187
+ ```bibtex
188
+ @inproceedings{bsc-catvermodel-pkt-a-2025,
189
+ title={Catalan Verification Model Parakeet B},
190
+ author={Hernandez Mena, Carlos Daniel; Messaoudi, Abir; España i Bonet, Cristina;},
191
+ organization={Barcelona Supercomputing Center},
192
+ url={https://huggingface.co/langtech-veu/catalan-verification-model-pkt-b},
193
+ year={2025}
194
+ }
195
+ ```
196
+
197
+ ## Additional Information
198
+
199
+ ### Author
200
+
201
+ The fine-tuning process was perform during June (2025) in the [Language Technologies Laboratory](https://huggingface.co/BSC-LT) of the [Barcelona Supercomputing Center](https://www.bsc.es/) by [Carlos Daniel Hernández Mena](https://huggingface.co/carlosdanielhernandezmena) supervised by [Cristina España i Bonet](https://huggingface.co/cristinae). The validation of the model was performed by [Abir Messaoudi](https://huggingface.co/AbirMessaoudi).
202
+
203
+ ### Contact
204
+ For further information, please send an email to <langtech@bsc.es>.
205
+
206
+ ### Copyright
207
+ Copyright(c) 2025 by Language Technologies Laboratory, Barcelona Supercomputing Center.
208
+
209
+ ### License
210
+
211
+ [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)
212
+
213
+
214
+ ### Funding
215
+ This work is funded by the Ministerio para la Transformación Digital y de la Función Pública - Funded by EU – NextGenerationEU within the framework of the project ILENIA with reference 2022/TL22/00215337.
216
+
217
+ The training of the model was possible thanks to the computing time provided by [Barcelona Supercomputing Center](https://www.bsc.es/) through MareNostrum 5.
218
+
219
+ We acknowledge EuroHPC Joint Undertaking for awarding us access to MareNostrum5 as BSC, Spain.
220
+