Downloads · 30 days
95
14% of all-time downloads
alakxender/t5-dhivehi-typo-corrector-asr
t5-dhivehi-typo-corrector-asr is a machine learning model from alakxender. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of t5-small specifically designed to correct typographic and transcription errors in Dhivehi text, especially those arising from automatic speech recognition (ASR) systems. It is opt…
Downloads · 30 days
95
14% of all-time downloads
All-time downloads
691
Public
Parameters
60.4M
242 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of t5-small specifically designed to correct typographic and transcription errors in Dhivehi text, especially those arising from automatic speech recognition (ASR) systems. It is optimized for ASR output cleanup tasks and may not perform reliably on general-purpose text correction or with other model inputs outside the scope of Dhivehi ASR error correction. For best results, use this model only within the context of post-processing Dhivehi ASR outputs.
You can use this model to correct ASR-generated text from Dhivehi audio. Here's an example using Hugging Face Transformers:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("alakxender/t5-dhivehi-typo-corrector-asr")
model = AutoModelForSeq2SeqLM.from_pretrained("alakxender/t5-dhivehi-typo-corrector-asr")
input_text = "މަސްދޫކޮށް ފަހަރަކު"
input_ids = tokenizer("fix: " + input_text, return_tensors="pt").input_ids
outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))