The "whisper-large-v3-ca-punctuated-3370h" is an acoustic model suitable for Automatic Speech Recognition in Catalan. It is the result of finetuning the model
"openai/whisper-large-v3"
with a combination of Catalan data from
Common Voice 17.0
(2,659 hours) and 710 hours of data released by the
Projecte AINA
from Barcelona, Spain. Totalling 3369 hours and 53 minutes.
A key advantage of this model is that it was trained on meticulously transcribed data, including punctuation and capitalization. As a result, the output transcriptions preserve these features, delivering more structured and readable outputs compared to standard ASR models.
Intended Uses and Limitations
This model can be used for Automatic Speech Recognition (ASR) in Catalan. The model is intended to transcribe audio files in Catalan to plain text with punctuation and capitalization.
How to Get Started with the Model
To see a functional version of this code, please see our our
Notebook
and, in order to invoke this model, just substitute the instances of "projecte-aina/whisper-large-v3-ca-3catparla" with "langtech-veu/whisper-large-v3-ca-punctuated-3370h".
#This code works with GPU#Notice that: load_metric is no longer part of datasets.#you have to remove it and use evaluate's load instead.#(Note from November 2024)import torch
from transformers import WhisperForConditionalGeneration, WhisperProcessor
#Load the processor and model.
MODEL_NAME="langtech-veu/whisper-large-v3-ca-punctuated-3370h"
processor = WhisperProcessor.from_pretrained(MODEL_NAME)
model = WhisperForConditionalGeneration.from_pretrained(MODEL_NAME).to("cuda")
#Load the datasetfrom datasets import load_dataset, load_metric, Audio
ds=load_dataset("projecte-aina/parlament_parla",split='test')
#Downsample to 16kHz
ds = ds.cast_column("audio", Audio(sampling_rate=16_000))
#Process the datasetdefmap_to_pred(batch):
audio = batch["audio"]
input_features = processor(audio["array"], sampling_rate=audio["sampling_rate"], return_tensors="pt").input_features
batch["reference"] = processor.tokenizer._normalize(batch['normalized_text'])
with torch.no_grad():
predicted_ids = model.generate(input_features.to("cuda"))[0]
transcription = processor.decode(predicted_ids)
batch["prediction"] = processor.tokenizer._normalize(transcription)
return batch
#Do the evaluation
result = ds.map(map_to_pred)
#Compute the overall WER now.from evaluate import load
wer = load("wer")
WER=100 * wer.compute(references=result["reference"], predictions=result["prediction"])
print(WER)
Training Details
Training data
The specific datasets used to create the model are:
whisper-large-v3-ca-punctuated-3370h huggingface.co is an AI model on huggingface.co that provides whisper-large-v3-ca-punctuated-3370h's model effect (), which can be used instantly with this BSC-LT whisper-large-v3-ca-punctuated-3370h model. huggingface.co supports a free trial of the whisper-large-v3-ca-punctuated-3370h model, and also provides paid use of the whisper-large-v3-ca-punctuated-3370h. Support call whisper-large-v3-ca-punctuated-3370h model through api, including Node.js, Python, http.
whisper-large-v3-ca-punctuated-3370h huggingface.co is an online trial and call api platform, which integrates whisper-large-v3-ca-punctuated-3370h's modeling effects, including api services, and provides a free online trial of whisper-large-v3-ca-punctuated-3370h, you can try whisper-large-v3-ca-punctuated-3370h online for free by clicking the link below.
BSC-LT whisper-large-v3-ca-punctuated-3370h online free url in huggingface.co:
whisper-large-v3-ca-punctuated-3370h is an open source model from GitHub that offers a free installation service, and any user can find whisper-large-v3-ca-punctuated-3370h on GitHub to install. At the same time, huggingface.co provides the effect of whisper-large-v3-ca-punctuated-3370h install, users can directly use whisper-large-v3-ca-punctuated-3370h installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
whisper-large-v3-ca-punctuated-3370h install url in huggingface.co: