Pashto offensive language detection: a benchmark dataset and monolingual Pashto BERT
Authors:
Open Access
- 18 October 2023
- journal article
- research article
- Published by PeerJ in PeerJ Computer Science
- Vol. 9, e1617
Abstract
Social media platforms have become inundated with offensive language. This issue must be addressed for the growth of online social networks (OSNs) and a healthy online environment. While significant research has been devoted to identifying toxic content in major languages like English, this remains an open area of research in the low-resource Pashto language. This study aims to develop an AI model for the automatic detection of offensive textual content in Pashto. To achieve this goal, we have developed a benchmark dataset called the Pashto Offensive Language Dataset (POLD), which comprises tweets collected from Twitter and manually classified into two categories: “offensive” and “not offensive”. To discriminate these two categories, we investigated the classic deep learning classifiers based on neural networks, including CNNs and RNNs, using static word embeddings: Word2Vec, fastText, and GloVe as features. Furthermore, we examined two transfer learning approaches. In the first approach, we fine-tuned the pre-trained multilingual language model, XLM-R, using the POLD dataset, whereas, in the second approach, we trained a monolingual BERT model for Pashto from scratch using a custom-developed text corpus. Pashto BERT was then fine-tuned similarly to XLM-R. The performance of all the deep learning and transformer learning models was evaluated using the POLD dataset. The experimental results demonstrate that our pre-trained Pashto BERT model outperforms the other models, achieving an F1-score of 94.34% and an accuracy of 94.77%.Keywords
This publication has 37 references indexed in Scilit:
- Detecting and Monitoring Hate Speech in TwitterSensors, 2019
- Multi-label Hate Speech and Abusive Language Detection in Indonesian Twitter2019
- Predicting the Type and Target of Offensive Posts in Social Media2019
- SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing2018
- Towards Accurate Detection of Offensive Language in Online Communication in ArabicProcedia Computer Science, 2018
- Abusive Language Detection on Arabic Social Media2017
- Improving Cyberbullying Detection with User Context2013
- Japanese and Korean voice search2012
- EditorialPolicy & Internet, 2011
- The pragmatics of swearingJournal of Politeness Research, 2008