nguyenvulebinh / wav2vec2-large-vi-vlsp2020

huggingface.co
Total runs: 766
24-hour runs: 0
7-day runs: -2
30-day runs: -2
Model's Last Updated: February 21 2023
automatic-speech-recognition

Introduction of wav2vec2-large-vi-vlsp2020

Model Details of wav2vec2-large-vi-vlsp2020

Model description

Our models use wav2vec2 architecture, pre-trained on 13k hours of Vietnamese youtube audio (un-label data) and fine-tuned on 250 hours labeled of VLSP ASR dataset on 16kHz sampled speech audio. You can find more description here

Benchmark WER result on VLSP T1 testset:
base model large model
without LM 8.66 6.90
with 5-grams LM 6.53 5.32
Usage

Open In Colab

#pytorch
#!pip install transformers==4.20.0
#!pip install https://github.com/kpu/kenlm/archive/master.zip
#!pip install pyctcdecode==0.4.0
#!pip install huggingface_hub==0.10.0

from transformers.file_utils import cached_path, hf_bucket_url
from importlib.machinery import SourceFileLoader
from transformers import Wav2Vec2ProcessorWithLM
from IPython.lib.display import Audio
import torchaudio
import torch

# Load model & processor
model_name = "nguyenvulebinh/wav2vec2-large-vi-vlsp2020"
model = SourceFileLoader("model", cached_path(hf_bucket_url(model_name,filename="model_handling.py"))).load_module().Wav2Vec2ForCTC.from_pretrained(model_name)
processor = Wav2Vec2ProcessorWithLM.from_pretrained(model_name)

# Load an example audio (16k)
audio, sample_rate = torchaudio.load(cached_path(hf_bucket_url(model_name, filename="t2_0000006682.wav")))
input_data = processor.feature_extractor(audio[0], sampling_rate=16000, return_tensors='pt')

# Infer
output = model(**input_data)

# Output transcript without LM
print(processor.tokenizer.decode(output.logits.argmax(dim=-1)[0].detach().cpu().numpy()))

# Output transcript with LM
print(processor.decode(output.logits.cpu().detach().numpy()[0], beam_width=100).text)
Model Parameters License

The ASR model parameters are made available for non-commercial use only, under the terms of the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license. You can find details at: https://creativecommons.org/licenses/by-nc/4.0/legalcode

Contact

[email protected]

Follow

Runs of nguyenvulebinh wav2vec2-large-vi-vlsp2020 on huggingface.co

766
Total runs
0
24-hour runs
-2
3-day runs
-2
7-day runs
-2
30-day runs

More Information About wav2vec2-large-vi-vlsp2020 huggingface.co Model

More wav2vec2-large-vi-vlsp2020 license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

wav2vec2-large-vi-vlsp2020 huggingface.co

wav2vec2-large-vi-vlsp2020 huggingface.co is an AI model on huggingface.co that provides wav2vec2-large-vi-vlsp2020's model effect (), which can be used instantly with this nguyenvulebinh wav2vec2-large-vi-vlsp2020 model. huggingface.co supports a free trial of the wav2vec2-large-vi-vlsp2020 model, and also provides paid use of the wav2vec2-large-vi-vlsp2020. Support call wav2vec2-large-vi-vlsp2020 model through api, including Node.js, Python, http.

wav2vec2-large-vi-vlsp2020 huggingface.co Url

https://huggingface.co/nguyenvulebinh/wav2vec2-large-vi-vlsp2020

nguyenvulebinh wav2vec2-large-vi-vlsp2020 online free

wav2vec2-large-vi-vlsp2020 huggingface.co is an online trial and call api platform, which integrates wav2vec2-large-vi-vlsp2020's modeling effects, including api services, and provides a free online trial of wav2vec2-large-vi-vlsp2020, you can try wav2vec2-large-vi-vlsp2020 online for free by clicking the link below.

nguyenvulebinh wav2vec2-large-vi-vlsp2020 online free url in huggingface.co:

https://huggingface.co/nguyenvulebinh/wav2vec2-large-vi-vlsp2020

wav2vec2-large-vi-vlsp2020 install

wav2vec2-large-vi-vlsp2020 is an open source model from GitHub that offers a free installation service, and any user can find wav2vec2-large-vi-vlsp2020 on GitHub to install. At the same time, huggingface.co provides the effect of wav2vec2-large-vi-vlsp2020 install, users can directly use wav2vec2-large-vi-vlsp2020 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

wav2vec2-large-vi-vlsp2020 install url in huggingface.co:

https://huggingface.co/nguyenvulebinh/wav2vec2-large-vi-vlsp2020

Url of wav2vec2-large-vi-vlsp2020

wav2vec2-large-vi-vlsp2020 huggingface.co Url

Provider of wav2vec2-large-vi-vlsp2020 huggingface.co

nguyenvulebinh
ORGANIZATIONS

Other API from nguyenvulebinh