Run this model with HF Jobs

Run Eng-Ali/arabic-sentiment-analysis on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Eng-Ali/arabic-sentiment-analysis. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Eng-Ali/arabic-sentiment-analysis on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Arabic Sentiment Analysis

Classifies Arabic customer reviews into Positive, Negative or Mixed.

Pipeline

  1. Cleaning: remove links, diacritics, tatweel and numbers; map emojis to sentiment tokens; reduce repeated letters.
  2. Lemmatization: CAMeL Tools MLE disambiguator, keeping negation and intensifier words.
  3. Embeddings: FastText Arabic 300d (frozen).
  4. Model: 2 stacked SimpleRNN layers (64, 32) + Dropout + Softmax.

Training

Item Value
Dataset Arabic 100K Reviews
Split 80% train / 20% test
Max length 30 tokens
Vocabulary 10,000 words
Test accuracy 62.4%

Files

File Description
arabic_sentiment_model.keras Trained model
tokenizer.json Keras tokenizer
classes.json Label order
app.py Gradio web interface
requirements.txt Dependencies
training_notebook.ipynb Full training notebook

Run the demo

pip install -r requirements.txt
python app.py
Downloads last month
19
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support