Downloads · 30 days
0
csukuangfj/sherpa-onnx-nemo-ctc-en-conformer-medium
sherpa-onnx-nemo-ctc-en-conformer-medium is a machine learning model from csukuangfj. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This repo contains torchscript model of sttenconformerctcmedium from NeMo.
Downloads · 30 days
0
Access
Public
Updated Apr 7, 2023
Repo size
386 MB
Likes
0
Public
Click a slice to open those files.
.onnx227 MB · 99%
From the Hugging Face model README
This repo contains torchscript model of stt_en_conformer_ctc_medium from NeMo.
See https://registry.ngc.nvidia.com/orgs/nvidia/teams/nemo/models/stt_en_conformer_ctc_medium
The following code is used to obtain model.onnx and tokens.txt:
m = nemo_asr.models.EncDecCTCModelBPE.from_pretrained('stt_en_conformer_ctc_medium')
m.export('model.onnx')
with open('tokens.txt', 'w') as f:
for i, s in enumerate(m.decoder.vocabulary):
f.write(f"{s} {i}\n")
f.write(f"<blk> {i+1}\n")