Arabic Sentiment Analysis with Transformers

Project Overview

Built high-accuracy sentiment classification models for Arabic text at CERIST, using transformer architectures (BERT, AraBERT, mBERT) via Hugging Face. The project targeted both Modern Standard Arabic and dialectal Arabic, which behave very differently under standard tokenization and required separate evaluation.

Technical Details

  • Architectures: BERT, AraBERT, mBERT, compared against classical ML baselines (SVM, logistic regression on TF-IDF features).
  • Frameworks: PyTorch, Hugging Face Transformers.
  • Data: Labeled Arabic text (tweets and reviews) across positive, negative, and neutral classes, covering both Modern Standard Arabic and dialectal varieties.
  • Evaluation: Accuracy and F1 compared across architectures and against traditional baselines, with error analysis on dialectal variation.