MARATTO

article

Leveraging BERT Models for Toxicity Detection in Moroccan Dialect

Abstract

The widespread use of social media and increased internet accessibility have led to the generation of vast amounts of data. Much of the online textual content consists of informal expressions of opinions by individuals, which often include hateful language. The advent of transformer-based models has greatly enhanced addressing such challenges in textual data. With their ability to process context bidirectionally and handle large-scale data efficiently, transformers have revolutionized natural language processing, particularly in tasks such as classifying online comments. From this perspective, this study has been conducted to deploy transformer-based models to identify harmful statements written in the Moroccan dialect (Darija), which poses unique challenges due to its informal and diverse linguistic nature. The Moroccan Arabic Toxic Comments Dataset (MATCD), gathered using Selenium, serves as the foundation for this study, enabling the evaluation of transformer-based models in detecting harmful comments in the Moroccan dialect. As the interest in the BERT (Bidirectional Encoder Representations from Transformers) model increased, several model variations were developed to adjust to different languages, including Arabic, to enhance the ability to handle language-specific tasks effectively. The experimental results exhibit the strengths and weaknesses of each approach, with the model achieving high accuracy, reaching up to 95%, providing valuable insight into the suitability and effectiveness of transformer-based models in this domain.

Research topics

  • Natural Language Processing Techniques

Read the original research

This page summarises published work. The authoritative version sits with the publisher.

DOI: 10.1109/iraset64571.2025.11008323

Is something wrong with this record? Report it or request removal.

Discussion

Discuss this research

Have you built on this work, tried to replicate it, or seen it applied in practice? Share what you know. Verified researchers and MARATTO™ domain experts can open a discussion, and any member can reply. Contributions are reviewed before they appear.

No discussion yet. Open the first thread.