48.9 kB
4 files
Updated 27 days ago
Name
Size
.gitattributes2.46 kB
xet
README.md1.64 kB
xet
yor_dev.csv3.03 kB
xet
yor_train.csv41.7 kB
xet
README.md

Are LLMs Good Text Diacritizers? An Arabic and Yorùbá Case Study

Hawau Olamide Toyin, Samar Magdy, Hanan Aldarmaki

We investigate the effectiveness of large language models (LLMs) for text diacritization in two typologically distinct languages: Arabic and Yoruba. To enable a rigorous evaluation, we introduce a novel multilingual dataset MultiDiac , with diverse samples that capture a range of diacritic ambiguities. We evaluate 14 LLMs varying in size, accessibility, and language coverage, and benchmarked them against 6 specialized diacritization models. Additionally, we fine-tune four small open-source models using LoRA for Yoruba. Our results show that many off-the-shelf LLMs outperform specialized diacritiztion models for both Arabic and Yoruba, but smaller models suffer from hallucinations. Fine-tuning on a small dataset can help improve diacritization performance and reduce hallucination rates.

Cite this work:

@misc{toyin2025llmsgoodtextdiacritizers,
     title={Are LLMs Good Text Diacritizers? An Arabic and Yor\`ub\'a Case Study}, 
     author={Hawau Olamide Toyin and Samar M. Magdy and Hanan Aldarmaki},
     year={2025},
     eprint={2506.11602},
     archivePrefix={arXiv},
     primaryClass={cs.CL},
     url={https://arxiv.org/abs/2506.11602}, 
}
Total size
48.9 kB
Files
4
Last updated
Jun 10
Pre-warmed CDN
US EU US EU

Contributors