This model was finetuned on the
Mići Princ dataset
,
the audiobook of the translation of
Le Petit Prince
into the Chakavian dialect of Croatian.
Model Details
Model Description
The model, already very potent in standard Croatian, was finetuned for 80 epochs with an effective batch size of 16. Performance was inspected every 4 epochs, and the latest checkpoint
is uploaded here. Character error rate has been brought down from 11.54% to 3.95%, while word error rate has been lowered from 35.43% to 16.83%.
Developed by:
Nikola Ljubešić, Peter Rupnik, Tea Perinčić
import torch
from datasets import load_dataset
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
from transformers.pipelines.pt_utils import KeyDataset
device = torch.device("cuda"if torch.cuda.is_available() else"cpu")
model_id = "classla/whisper-large-v3-mici-princ"
model = AutoModelForSpeechSeq2Seq.from_pretrained(
model_id,
)
model.to(device)
processor = AutoProcessor.from_pretrained(model_id)
ds = load_dataset("classla/Mici_Princ", split="test")
pipe = pipeline(
"automatic-speech-recognition",
model=model,
tokenizer=processor.tokenizer,
feature_extractor=processor.feature_extractor,
max_new_tokens=128,
chunk_length_s=30,
batch_size=16,
return_timestamps=True,
device=device,
)
result = pipe(
KeyDataset(ds, "audio"),
generate_kwargs={"language": "croatian"},
)
for i in result:
print(i)
# Output:# {'text': ' Šesti planet je biv deset put veći. Na njin je bivav niki stari čovik ki je pisav vele knjige.', 'chunks': [{'timestamp': (0.0, 7.18), 'text': ' Šesti planet je biv deset put veći. Na njin je bivav niki stari čovik ki je pisav vele knjige.'}]}# ...
Training Details
Preprocessing
Model was trained on the
normalized_text
attribute of the
Mići Princ dataset
. This means
that the data included capital letters and punctuation, except bullet points, newlines, and quotation marks. Special characters, present in
the dialect, but not in standard Croatian, were substituted.
For evaluation, the
test
split of the
Mići Princ dataset
was used. The test split consists of two known speakers, Autor and Mići Princ, and two unknown speakers, Geograf and Dilavac. Important to note is that each speaker uses a different micro-dialect, so the test data is challenging on including two new micro-dialects.
whisper-large-v3-mici-princ huggingface.co is an AI model on huggingface.co that provides whisper-large-v3-mici-princ's model effect (), which can be used instantly with this classla whisper-large-v3-mici-princ model. huggingface.co supports a free trial of the whisper-large-v3-mici-princ model, and also provides paid use of the whisper-large-v3-mici-princ. Support call whisper-large-v3-mici-princ model through api, including Node.js, Python, http.
whisper-large-v3-mici-princ huggingface.co is an online trial and call api platform, which integrates whisper-large-v3-mici-princ's modeling effects, including api services, and provides a free online trial of whisper-large-v3-mici-princ, you can try whisper-large-v3-mici-princ online for free by clicking the link below.
classla whisper-large-v3-mici-princ online free url in huggingface.co:
whisper-large-v3-mici-princ is an open source model from GitHub that offers a free installation service, and any user can find whisper-large-v3-mici-princ on GitHub to install. At the same time, huggingface.co provides the effect of whisper-large-v3-mici-princ install, users can directly use whisper-large-v3-mici-princ installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
whisper-large-v3-mici-princ install url in huggingface.co: