Arabic text diacritization using transformers: a comparative study
Open Access
- 1 February 2025
- journal article
- Published by Institute of Advanced Engineering and Science in IAES International Journal of Artificial Intelligence (IJ-AI)
- Vol. 14 (1) , 702-711
Abstract
The Arabic language presents challenges for natural language processing (NLP) tasks. One such challenge is diacritization, which involves adding diacritical marks to Arabic text to enhance readability and disambiguation. Diacritics play a crucial role in determining the correct pronunciation, meaning, and grammatical structure of words and sentences. However, Arabic texts are often written without diacritics, making NLP tasks more complex. This study investigates the efficacy of advanced machine learning models in automatic Arabic text diacritization, with a concentrated focus on the Arabic bidirectional encoder representations from transformers (AraBERT) and bidirectional long short-term memory (Bi-LSTM) models. AraBERT, a bidirectional encoder representation from transformers (BERT) derivative, leverages the transformer architecture to exploit contextual subtleties and discern linguistic patterns within a substantial corpus. Our comprehensive evaluation benchmarks the performance of these models, revealing that AraBERT significantly outperforms the Bi-LSTM with a diacritic error rate (DER) of only 0.81% and an accuracy rate of 98.15%, against the Bi-LSTM's DER of 1.02% and accuracy of 93.88%. The study also explores various optimization strategies to amplify model performance, setting a precedent for future research to enhance Arabic diacritization and contribute to the advancement of Arabic NLP.Keywords
This publication has 18 references indexed in Scilit:
- AraPunc: Arabic Punctuation Restoration Using Transformers2023
- Fine-Tashkeel: Fine-Tuning Byte-Level Models for Accurate Arabic Text Diacritization2023
- Neural Network for Arabic Text Diacritization on a New Dataset2023
- Arabic Syntactic Diacritics Restoration Using BERT ModelsComputational Intelligence and Neuroscience, 2022
- Diacritics Restoration using BERT with Analysis on Czech languageThe Prague Bulletin of Mathematical Linguistics, 2021
- Arabic Diacritic Recovery Using a Feature-rich biLSTM ModelACM Transactions on Asian and Low-Resource Language Information Processing, 2021
- Multi-components System for Automatic Arabic Diacritization2020
- Transformers: State-of-the-Art Natural Language Processing2020
- Arabic Text Diacritization Using Deep Neural Networks2019
- Automatic diacritization of Arabic text using recurrent neural networksInternational Journal on Document Analysis and Recognition (IJDAR), 2015