aandrusenko commited on
Commit
0a36ab6
1 Parent(s): 8383a22

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +139 -0
README.md CHANGED
@@ -1,3 +1,142 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - eo
4
+ library_name: nemo
5
+ datasets:
6
+ - mozilla-foundation/common_voice_11_0
7
+ thumbnail: null
8
+ tags:
9
+ - automatic-speech-recognition
10
+ - speech
11
+ - audio
12
+ - CTC
13
+ - Conformer
14
+ - Transformer
15
+ - pytorch
16
+ - NeMo
17
+ - hf-asr-leaderboard
18
+ - Riva
19
  license: cc-by-4.0
20
+ model-index:
21
+ - name: stt_eo_conformer_ctc_large
22
+ results:
23
+ - task:
24
+ name: Automatic Speech Recognition
25
+ type: automatic-speech-recognition
26
+ dataset:
27
+ name: Mozilla Common Voice 11.0
28
+ type: mozilla-foundation/common_voice_11_0
29
+ config: eo
30
+ split: test
31
+ args:
32
+ language: eo
33
+ metrics:
34
+ - name: Dev WER
35
+ type: wer
36
+ value: 2.9
37
+ - name: Test WER
38
+ type: wer
39
+ value: 4.8
40
  ---
41
+
42
+ # NVIDIA Conformer-CTC Large (Esperanto)
43
+
44
+ <style>
45
+ img {
46
+ display: inline;
47
+ }
48
+ </style>
49
+
50
+ | [![Model architecture](https://img.shields.io/badge/Model_Arch-Conformer--CTC-lightgrey#model-badge)](#model-architecture)
51
+ | [![Model size](https://img.shields.io/badge/Params-120M-lightgrey#model-badge)](#model-architecture)
52
+ | [![Language](https://img.shields.io/badge/Language-eo-lightgrey#model-badge)](#datasets)
53
+ | [![Riva Compatible](https://img.shields.io/badge/NVIDIA%20Riva-compatible-brightgreen#model-badge)](#deployment-with-nvidia-riva) |
54
+
55
+
56
+ This model transcribes speech into lowercase Esperanto alphabet including spaces and apostroph. The model was obtained by finetuning from English SSL-pretrained model on Mozilla Common Voice Esperanto 11.0 dataset. It is a non-autoregressive "large" variant of Conformer [1], with around 120 million parameters. 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-ctc) for complete architecture details.
57
+ It is also compatible with NVIDIA Riva for [production-grade server deployments](#deployment-with-nvidia-riva).
58
+
59
+ The Esperanto model utilizes a Google SentencePiece [2] tokenizer with vocabulary size 128
60
+
61
+ ## Usage
62
+
63
+ The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for inference or for finetuning on another dataset.
64
+
65
+ To train, finetune 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.
66
+
67
+ ```
68
+ pip install nemo_toolkit['all']
69
+ ```
70
+
71
+ ### Automatically instantiate the model
72
+
73
+ ```python
74
+ import nemo.collections.asr as nemo_asr
75
+ asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained("nvidia/stt_eo_conformer_ctc_large")
76
+ ```
77
+
78
+ ### Transcribing using Python
79
+ Simply do:
80
+ ```
81
+ asr_model.transcribe(['<your_audio>.wav'])
82
+ ```
83
+
84
+ ### Transcribing many audio files
85
+
86
+ ```shell
87
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
88
+ pretrained_name="nvidia/stt_eo_conformer_ctc_large"
89
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
90
+ ```
91
+
92
+ ### Input
93
+
94
+ This model accepts 16 kHz mono-channel Audio (wav files) as input.
95
+
96
+ ### Output
97
+
98
+ This model provides transcribed speech as a string for a given audio sample.
99
+
100
+ ## Model Architecture
101
+
102
+ Conformer-CTC model is a non-autoregressive variant of Conformer model [1] for Automatic Speech Recognition which uses CTC loss/decoding instead of Transducer. You may find more info on the detail of this model here: [Conformer-CTC Model](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#conformer-ctc).
103
+
104
+ ## Training
105
+
106
+ The NeMo toolkit [3] was used for finetuning from English SSL model for three hundred epochs. The model is finetuning with this [example script](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/asr_ctc/speech_to_text_ctc_bpe.py) and this [base config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/conformer/conformer_ctc_bpe.yaml). As pretrained English SSL model we use [ssl_en_conformer_large](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/nemo/models/ssl_en_conformer_large) which was trained using LibriLight corpus (~56k hrs of unlabeled English speech).
107
+
108
+ The tokenizer (BPE vocab size 128) for the model was 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).
109
+
110
+ Full config can be found inside the .nemo files.
111
+
112
+ More training details can be found at the [Esperanto ASR example](https://github.com/andrusenkoau/NeMo/blob/esperanto_example/docs/source/asr/examples/esperanto_asr/esperanto_asr.rst).
113
+
114
+ ### Datasets
115
+
116
+ All the models were trained on a Mozilla Common Voice Esperanto 11.0 dataset comprising of about 1400 validated hours of Esperanto speech. However, training set consists of a much smaller amount of data, because when forming the train.tsv, dev.tsv and test.tsv, repetitions of texts in train were removed by Mozilla developers.
117
+
118
+ - Train set: ~250 hours.
119
+ - Dev set: ~25 hours.
120
+ - Test: ~25 hours.
121
+
122
+ ## Performance
123
+
124
+ The list of the available models in this collection is shown in the following table. Performances of the ASR models are reported in terms of Word Error Rate (WER%) with greedy decoding.
125
+
126
+ | Version | Tokenizer | Vocabulary Size | Dev WER| Test WER| Train Dataset |
127
+ |---------|-----------------------|-----------------|--------|---------|-----------------|
128
+ | 1.14.0 | SentencePiece BPE | 128 | 2.9 | 4.8 | MCV-11.0 Train set |
129
+
130
+ ## Limitations
131
+ 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.
132
+ ## Deployment with NVIDIA Riva
133
+ For the best real-time accuracy, latency, and throughput, deploy the model with [NVIDIA Riva](https://developer.nvidia.com/riva), an accelerated speech AI SDK deployable on-prem, in all clouds, multi-cloud, hybrid, at the edge, and embedded.
134
+ Additionally, Riva provides:
135
+ * World-class out-of-the-box accuracy for the most common languages with model checkpoints trained on proprietary data with hundreds of thousands of GPU-compute hours
136
+ * Best in class accuracy with run-time word boosting (e.g., brand and product names) and customization of acoustic model, language model, and inverse text normalization
137
+ * Streaming speech recognition, Kubernetes compatible scaling, and Enterprise-grade support
138
+ Check out [Riva live demo](https://developer.nvidia.com/riva#demos).
139
+ ## References
140
+ - [1] [Conformer: Convolution-augmented Transformer for Speech Recognition](https://arxiv.org/abs/2005.08100)
141
+ - [2] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
142
+ - [3] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)