alakxender/t5-dhivehi-typo-corrector-asr

🤗 Hugging Face 来源mit60M 参数242 MBsafetensors✓ 2 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo alakxender/t5-dhivehi-typo-corrector-asr ./model-folder
需要做种者 →

T5-dhivehi-typo-corrector-asr

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.

Usage

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))

Performance

  • Final Validation Loss: 0.3487