Elamur Research⌕
☰
home / papers / 2025 / A Gemini-Based Model for Arabic Sentiment Analysis of Multi-Dialect Hotel Reviews: Ahasis Shared Task Submission

A Gemini-Based Model for Arabic Sentiment Analysis of Multi-Dialect Hotel Reviews: Ahasis Shared Task Submission

Paper · 2025 · Mohammed A. H. Lubbad

Summary

The paper describes a submission to the Ahasis Shared Task, which asks systems to classify Arabic hotel reviews as positive, neutral or negative. The reviews are written in Saudi dialect and Moroccan Darija, two varieties far from MSA, so models trained mainly on MSA handle them poorly. The author does not fine-tune any model. Instead, Gemini Pro 1.5 is called through its API with a few-shot JSON prompt. Before inference, a preprocessing step cleans the text, normalizes elongated spellings, adds a dialect tag to the prompt and marks possible sarcasm.

Gemini was chosen over GPT-4o, LLaMA-3, Claude 3.5, CAMeL, AraBERT and others by testing them on a separate in-house benchmark of YouTube comments. On the official test the system reached F1 0.7361 and ranked 10th. The main errors were neutral factual statements labeled as positive and missed sarcasm. The work matters because it shows that prompt design alone, with no retraining, gives competitive results on low-resource dialectal data.

Key points

  • The Ahasis training set has 860 reviews: 336 negative, 216 neutral, 308 positive. The competition evaluation covered 3,000 samples.
  • The internal benchmark started as 577 hand-labeled YouTube comments from AJ360 shows. Manual paraphrasing of minority classes grew it to 700. On this benchmark Gemini Pro 1.5 scored 81.46% accuracy and 0.801 Macro-F1, ahead of the other models tested.
  • Inference setup:
    • a prompt with 20 examples balanced across dialects;
    • temperature 0 and topP 0.95;
    • all safety filters set to BLOCK_NONE;
    • batch calls run from a spreadsheet Apps Script, with the code released on GitHub.
  • Sarcasm flagging combines the ArSarcasm dataset with hand-written rules that look for contradictions.
  • Official result: F1 0.7361, balanced accuracy 0.7229, 10th place. The results come from a single run, and no significance test against other teams was possible.

Interesting ideas

  • I1. When the model makes errors, add new few-shot examples that target those errors, for example plain factual statements labeled neutral. This fixes the problem without any retraining.
  • I2. Detect the language variety first, then pass it as an explicit tag to the downstream model, so later steps know which conventions apply.
  • I3. Use contradiction patterns as a sarcasm cue: strong praise followed by a bad consequence (like a room so wonderful the guest could not sleep).
  • I4. The main error source was confusing an objective description (good location, cheap price) with the speaker's emotional stance.
  • I5. Choose the model by testing it on a different, noisier domain than the target. This checks robustness before committing to a final system.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (learn): LLM teacher prompts could be repaired the same way, by collecting disagreements with the witness parsers and adding contrastive examples of exactly those cases.
  • I2 (tree): tag the variety or register of input text (e.g. informal web English vs. edited prose) before parsing, so gparse or the UD dialect-conversion rules can choose the matching settings.
  • I3 (frames): the irony detector in prag could check whether an evaluative frame conflicts with an outcome frame that describes harm to the same experiencer.
  • I4 (world): store attribute facts about entities separately from the author's attitude, so answers about "what the hotel is like" and "how the writer feels" draw on different stores.
  • I5 (learn): keep a domain-shifted held-out set (e.g. comments or forum posts) next to treebank tests, as a check that a gain is not just overfitting to one genre.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

Also on the byline: Erciyes University.

 Fields, topics and concepts

Cite

Cite as Mohammed A. H. Lubbad. 2025. A Gemini-Based Model for Arabic Sentiment Analysis of Multi-Dialect Hotel Reviews: Ahasis Shared Task Submission. Proceedings of the Shared Task on Sentiment Analysis for Arabic Dialects.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{lubbad2025gemini,
  title = {{A Gemini-Based Model for Arabic Sentiment Analysis of Multi-Dialect Hotel Reviews: Ahasis Shared Task Submission}},
  author = {Mohammed A. H. Lubbad},
  booktitle = {Proceedings of the Shared Task on Sentiment Analysis for Arabic Dialects},
  year = {2025},
  doi = {10.26615/978-954-452-109-7-012},
  url = {https://doi.org/10.26615/978-954-452-109-7-012}
}

References

9 references, 2 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Alaa ElSayed, Ahmed Shaar, and Wajdi Zaghouani. 2020. Arabic Language Resources and Processing Tools for Sentiment Analysis: Current State and Future Directions. Journal of Information Science, 46(6):788–805. find
  2. Muhammad Abdul-Mageed and Mona Diab. 2014. SAMAR: Subjectivity and Sentiment Analysis for Arabic Social Media. Computer Speech & Language, 28(1):20–37. find
  3. Maram Alharbi, Salmane Chafik, Saad Ezzini, Ruslan Mitkov, Tharindu Ranasinghe, and Hansi Hettiarachchi. 2025a. AHaSIS: Shared Task on Sentiment Analysis for Arabic Dialects. In Proceedings of the 15th International Conference on Recent Advances in Natural Language Processing (RANLP), Varna, Bulgaria. Association for Computational Linguistics (ACL).
  4. Yassir Matrane, Faouzia Benabbou, and Zineb Ellaky. 2024. Enhancing Moroccan Dialect Sentiment Analysis through Optimized Preprocessing and Transfer Learning Techniques. IEEE Access, 12:16276–16298. find
  5. Osama Obeid, Salam Khalifa, Dana Abdulrahim, and Nizar Habash. 2020. CAMeL Tools: An Open Source Python Toolkit for Arabic Natural Language Processing. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 7022–7032, Marseille, France. European Language Resources Association.
  6. Maram Alharbi, Saad Ezzini, Hansi Hettiarachchi, Tharindu Ranasinghe, and Ruslan Mitkov. 2025b. Evaluating Large Language Models on Arabic Dialect Sentiment Analysis. In Proceedings of the 15th International Conference on Recent Advances in Natural Language Processing (RANLP), Varna, Bulgaria. Association for Computational Linguistics (ACL). find
  7. Abubakr H. Ombabi, Wael Ouarda, and Adel M. Alimi. 2024. Improving Arabic Sentiment Analysis across Context-Aware Attention Deep Model. Language Resources and Evaluation, 59(2):639– 663. find
  8. Martín Serrano, Hager Saleh, Ali A. Hamzah, et al. 2024. ArabBERT-LSTM: Improving Arabic Sentiment Analysis based on Transformer Model and LSTM. Frontiers in Artificial Intelligence, 7:1408845. find
  9. Mohamed Zrigui, Haifa Ben Aicha, and Lamia Hadrich Belguith. 2021. Survey on Arabic Sentiment Analysis: Techniques, Resources and Challenges. Artificial Intelligence Review, 54(6):4271– 4312. find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/lubbad-2025-gemini-based-model-arabic-sentiment/