Downloads · 30 days
20
11% of all-time downloads
takehika/wav2vec2-ja-cv25-reazon-mixed
wav2vec2-ja-cv25-reazon-mixed is a automatic speech recognition model from takehika. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
Japanese ASR model based on facebook/wav2vec2-large-xlsr-53.
Downloads · 30 days
20
11% of all-time downloads
All-time downloads
185
Public
Parameters
319M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
Japanese ASR model based on facebook/wav2vec2-large-xlsr-53.
facebook/wav2vec2-large-xlsr-53import torch
import librosa
from transformers import AutoModelForCTC, Wav2Vec2Processor
repo_id = "takehika/wav2vec2-ja-cv25-reazon-mixed"
processor = Wav2Vec2Processor.from_pretrained(repo_id)
model = AutoModelForCTC.from_pretrained(repo_id)
speech, _ = librosa.load("sample.wav", sr=16_000)
inputs = processor(speech, sampling_rate=16_000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(**inputs).logits
pred_ids = torch.argmax(logits, dim=-1)
text = processor.batch_decode(pred_ids)[0]
print(text)
Text normalization:
Tokenizer/vocab behavior:
|0-9、, 。, 「, 」?, ! in the final saved vocabExternal evaluation results saved in this project:
CER = 0.3343 on 8,957 samplesCER = 0.2632 on 4,999 samplesCER was computed using nearly the same text normalization as training preprocessing: both references and predictions were Unicode NFKC-normalized, whitespace-cleaned, | was mapped to a space, and only Japanese characters, digits 0-9, and selected punctuation were retained.
Reference: 私はその人の記憶を呼び起すごとに、すぐ「先生」といいたくなる。
Prediction: 私はその人の記憶を呼び起こすごとにすぐ先生とい痛くなる。
Reference: 元気の出る曲をかけて
Prediction: 元金の出る曲をかけて
Reference: 日本語は美しいです。
Prediction: 日本語は美しいです。
Reference: 札幌スクーリングへ行く
Prediction: 札幌札幌ロスクーリグへ行く
facebook/wav2vec2-large-xlsr-53 - Apache-2.0This model is licensed under Apache-2.0.