Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.22.0
metadata
title: Arabic Sentiment Analysis
emoji: π§
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.5.1
python_version: '3.10'
app_file: app.py
pinned: false
Arabic Sentiment Analysis with AraBERT
This project presents an Arabic Sentiment Analysis system based on a fine-tuned version of AraBERT.
The model predicts the sentiment of Arabic text as Positive or Negative, along with a confidence score.
The application is deployed using Gradio on Hugging Face Spaces, providing an interactive web interface for real-time inference.
π Demo
Simply enter an Arabic text in the input box and the model will return:
- Sentiment: Positive / Negative
- Confidence: Prediction confidence in percentage (%)
π§ Model
- Base model:
aubmindlab/bert-base-arabertv02 - Task: Binary Sentiment Classification
- Labels:
0β Negative1β Positive
- Preprocessing: AraBERT text normalization and cleaning
π Dataset
- Dataset: Arabic Sentiment Analysis dataset
- Classes:
- Negative (0): 1,784 samples
- Positive (1): 2,332 samples
- Domain: Arabic tweets and short texts
β οΈ The dataset is not included in this repository, as it is used only during training.
βοΈ Training Details
- Fine-tuning performed on Google Colab
- Early Stopping used to prevent overfitting
- Checkpointing enabled during training
- Final model selected based on validation performance
π₯οΈ Deployment
- Framework: Gradio
- Platform: Hugging Face Spaces
- Hardware: CPU (Zero GPU)
- Inference: Real-time