jbalam-nv commited on
Commit
2ca4208
1 Parent(s): f083ee7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +178 -0
README.md CHANGED
@@ -1,3 +1,181 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - fr
4
+ library_name: nemo
5
+ datasets:
6
+ - multilingual_librispeech
7
+ - mozilla-foundation/common_voice_7_0
8
+ - VoxPopuli
9
+ thumbnail: null
10
+ tags:
11
+ - automatic-speech-recognition
12
+ - speech
13
+ - audio
14
+ - Transducer
15
+ - Conformer
16
+ - Transformer
17
+ - pytorch
18
+ - NeMo
19
+ - hf-asr-leaderboard
20
  license: cc-by-4.0
21
+ model-index:
22
+ - name: stt_fr_conformer_transducer_large
23
+ results:
24
+ - task:
25
+ name: Automatic Speech Recognition
26
+ type: automatic-speech-recognition
27
+ dataset:
28
+ name: MCV 7.0
29
+ type: mozilla-foundation/common_voice_7_0
30
+ config: fr
31
+ split: dev
32
+ args:
33
+ language: fr
34
+ metrics:
35
+ - name: Dev WER
36
+ type: wer
37
+ value: 6.85
38
+ - task:
39
+ name: Automatic Speech Recognition
40
+ type: automatic-speech-recognition
41
+ dataset:
42
+ name: MCV 7.0
43
+ type: mozilla-foundation/common_voice_7_0
44
+ config: fr
45
+ split: test
46
+ args:
47
+ language: fr
48
+ metrics:
49
+ - name: Dev WER
50
+ type: wer
51
+ value: 7.95
52
+ - task:
53
+ type: Automatic Speech Recognition
54
+ name: automatic-speech-recognition
55
+ dataset:
56
+ name: Multilingual Librispeech
57
+ type: multilingual_librispeech
58
+ config: fr
59
+ split: dev
60
+ args:
61
+ language: fr
62
+ metrics:
63
+ - name: Dev WER
64
+ type: wer
65
+ value: 5.05
66
+ - task:
67
+ type: Automatic Speech Recognition
68
+ name: automatic-speech-recognition
69
+ dataset:
70
+ name: Multilingual Librispeech
71
+ type: multilingual_librispeech
72
+ config: fr
73
+ split: test
74
+ args:
75
+ language: fr
76
+ metrics:
77
+ - name: Test WER
78
+ type: wer
79
+ value: 4.10
80
  ---
81
+
82
+ # NVIDIA Conformer-Transducer Large (fr)
83
+
84
+ <style>
85
+ img {
86
+ display: inline;
87
+ }
88
+ </style>
89
+
90
+ | [![Model architecture](https://img.shields.io/badge/Model_Arch-Conformer--Transducer-lightgrey#model-badge)](#model-architecture)
91
+ | [![Model size](https://img.shields.io/badge/Params-120M-lightgrey#model-badge)](#model-architecture)
92
+ | [![Language](https://img.shields.io/badge/Language-fr-lightgrey#model-badge)](#datasets)
93
+
94
+
95
+ This model was trained on a composite dataset comprising of over 1500 hours of French speech. It is a large size version of Conformer-Transducer (around 120M parameters).
96
+ See the [model architecture](#model-architecture) section and [NeMo documentation](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#conformer-transducer) for complete architecture details.
97
+
98
+ ## NVIDIA NeMo: Training
99
+
100
+ To train, fine-tune or play with the model you will need to install [NVIDIA NeMo](https://github.com/NVIDIA/NeMo). We recommend you install it after you've installed latest Pytorch version.
101
+ ```
102
+ pip install nemo_toolkit['all']
103
+ ```
104
+
105
+ ## How to Use this Model
106
+
107
+ The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.
108
+
109
+
110
+ ### Automatically instantiate the model
111
+
112
+ ```python
113
+ import nemo.collections.asr as nemo_asr
114
+ asr_model = nemo_asr.models.EncDecRNNTBPEModel.from_pretrained("nvidia/stt_fr_conformer_transducer_large")
115
+ ```
116
+
117
+ ### Transcribing using Python
118
+ First, let's get a sample
119
+ ```
120
+ wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
121
+ ```
122
+ Then simply do:
123
+ ```
124
+ asr_model.transcribe(['2086-149220-0033.wav'])
125
+ ```
126
+
127
+ ### Transcribing many audio files
128
+
129
+ ```shell
130
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
131
+ pretrained_name="nvidia/stt_fr_conformer_transducer_large"
132
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
133
+ ```
134
+
135
+ ### Input
136
+
137
+ This model accepts 16000 kHz Mono-channel Audio (wav files) as input.
138
+
139
+ ### Output
140
+
141
+ This model provides transcribed speech as a string for a given audio sample.
142
+
143
+ ## Model Architecture
144
+
145
+ Conformer-Transducer model is an autoregressive variant of Conformer model [1] for Automatic Speech Recognition which uses Transducer loss/decoding instead of CTC Loss. You may find more info on the detail of this model here: [Conformer-Transducer Model](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html).
146
+
147
+ ## Training
148
+
149
+ The NeMo toolkit [3] was used for training the models for over several hundred epochs. These model are trained with this [example script](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/asr_transducer/speech_to_text_rnnt_bpe.py) and this [base config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/conformer/conformer_transducer_bpe.yaml).
150
+
151
+ The tokenizers for these models were built using the text transcripts of the train set with this [script](https://github.com/NVIDIA/NeMo/blob/main/scripts/tokenizers/process_asr_text_tokenizer.py).
152
+
153
+ ## Datasets
154
+ All the models in this collection are trained on a composite dataset (NeMo ASRSET) comprising of over a thousand hours of French speech:
155
+
156
+ - MozillaCommonVoice 7.0 - 356 hours
157
+ - Multilingual LibriSpeech - 1036 hours
158
+ - VoxPopuli - 182 hours
159
+
160
+ Both models use same dataset, excluding a preprocessing step to strip hyphen from data for secondary model's training.
161
+
162
+ ## Performance
163
+ The performance of Automatic Speech Recognition models is measuring using Word Error Rate. Since this dataset is trained on multiple domains and a much larger corpus, it will generally perform better at transcribing audio in general.
164
+
165
+ The latest model obtains the following greedy scores on the following evaluation datasets
166
+
167
+ - 6.85 % on MCV7.0 dev
168
+ - 7.95 % on MCV7.0 test
169
+ - 5.05 % on MLS dev
170
+ - 4.10 % on MLS test
171
+
172
+ Note that these evaluation datasets have been filtered and preprocessed to only contain French alphabet characters and are removed of punctuation outside of hyphenation and apostrophe.
173
+
174
+ ## Limitations
175
+ Since this model was trained on publicly available speech datasets, the performance of this model might degrade for speech which includes technical terms, or vernacular that the model has not been trained on. The model might also perform worse for accented speech.
176
+
177
+ Further, since portions of the training set contain text from both pre- and post- 1990 orthographic reform, regularity of punctuation may vary between the two styles.
178
+ For downstream tasks requiring more consistency, finetuning or downstream processing may be required. If exact orthography is not necessary, then using secondary model is advised.
179
+
180
+
181
+