AraPunc: Arabic Punctuation Restoration Using Transformers
Authors:
- 4 December 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-6
Abstract
Adding punctuation to Arabic text enhances readability and clarity. This is very clear in many applications such as automatic speech recognition (ASR) and machine translation (MT) systems. In this paper, we introduce a new punctuation dataset. Our AraPunc dataset is based on the pre-processing of the Tashkeela "Arabic diacritization corpus". We keep six classes: space ‘0’, full-stop ‘.’, comma ‘,’, the colon’:’, semicolon ‘;’, and question mark ‘?’. We treat the punctuation restoration task as a token-wise classification problem that assigns a class (one of the six classes) to each word on the input sentence. We train different transformer-based language models on our new dataset. We found that XLM-RoBERTa outperforms other transformer-based models with a macro-average F1-score of 0.7851 on the AraPunc test set. We also allowed cross-finetuning between QCRI Aljazeera Speech Recognition (QASR) dataset and our novel AraPunc dataset. We managed to achieve a macro average F1-score of 0.7050 on the QASR test set, after training the model first using the AraPunc dataset. Our experiments revealed that AraPunc provides better representations which makes it more suitable to fine-tune models for punctuation restoration task. We release our dataset and code to facilitate future research on this topic 1 .Keywords
This publication has 13 references indexed in Scilit:
- AraDepSu: Detecting Depression and Suicidal Ideation in Arabic Tweets Using Transformers2022
- Capitalization and punctuation restoration: a surveyArtificial Intelligence Review, 2021
- QASR: QCRI Aljazeera Speech Resource A Large Scale Annotated Arabic Speech Corpus2021
- Robust Prediction of Punctuation and Truecasing for Medical ASR2020
- BioBERT: a pre-trained biomedical language representation model for biomedical text miningBioinformatics, 2019
- Tashkeela: Novel corpus of Arabic vocalized texts, data for auto-diacritization systemsData in Brief, 2017
- Bidirectional Recurrent Neural Network with Attention Mechanism for Punctuation Restoration2016
- Multi-pass sentence-end detection of lecture speech2014
- Automatic linguistic segmentation of conversational speech2002
- Using machine learning to maintain rule-based named-entity recognition and classification systems2001