journal article·2024-11-28Open access

Advancing Arabic Word Embeddings: A Multi-Corpora Approach with Optimized Hyperparameters and Custom Evaluation

Azzah Allahim, Asma Cherif

Applied Sciences· Volume 14· Issue 23

Abstract

The expanding Arabic user base presents a unique opportunity for researchers to tap into vast online Arabic resources. However, the lack of reliable Arabic word embedding models and the limited availability of Arabic corpora poses significant challenges. This paper addresses these gaps by developing and evaluating Arabic word embedding models trained on diverse Arabic corpora, investigating how varying hyperparameter values impact model performance across different NLP tasks. To train our models, we collected data from three distinct sources: Wikipedia, newspapers, and 32 Arabic books, each selected to capture specific linguistic and contextual features of Arabic. By using advanced techniques such as Word2Vec and FastText, we experimented with different hyperparameter configurations, such as vector size, window size, and training algorithms (CBOW and skip-gram), to analyze their impact on model quality. Our models were evaluated using a range of NLP tasks, including sentiment analysis, similarity tests, and an adapted analogy test designed specifically for Arabic. The findings revealed that both the corpus size and hyperparameter settings had notable effects on performance. For instance, in the analogy test, a larger vocabulary size significantly improved outcomes, with the FastText skip-gram models excelling in accurately solving analogy questions. For sentiment analysis, vocabulary size was critical, while in similarity scoring, the FastText models achieved the highest scores, particularly with smaller window and vector sizes. Overall, our models demonstrated strong performance, achieving 99% and 90% accuracies in sentiment analysis and the analogy test, respectively, along with a similarity score of 8 out of 10. These results underscore the value of our models as a robust tool for Arabic NLP research, addressing a pressing need for high-quality Arabic word embeddings.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Natural Language Processing Techniques · Text Readability and Simplification · Topic Modeling

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

IT Department, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah 21589, Saudi Arabia

College of Computer and Information Sciences, Jouf University, Sakaka 72388, Saudi Arabia

The Center of Excellence in Smart Environment Research, King Abdulaziz University, Jeddah 21589, Saudi Arabia

References (31)

Show source-provided references
1. How to Generate a Good Word Embedding?10.1109/MIS.2016.45 ↗
2. Maas, A.L., Daly, R.E., Pham, P.T., Huang, D., Ng, A.Y., and Potts, C. (2011, January 19–24). Learning Word Vectors for Sentiment Analysis. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, Portland, OR, USA.
3. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient Estimation of Word Representations in Vector Space. Proc. Workshop ICLR, 2013.
4. Morphological Word Embedding for Arabic10.1016/j.procs.2018.10.463 ↗
5. Joulin, A., Grave, E., Bojanowski, P., Douze, M., Jégou, H., and Mikolov, T. (2016). FastText.zip: Compressing text classification models. arXiv.
6. Enriching Word Vectors with Subword Information10.1162/tacl_a_00051 ↗
7. Grave, E., Bojanowski, P., Gupta, P., Joulin, A., and Mikolov, T. (2018). Learning Word Vectors for 157 Languages. arXiv.
8. Azroumahli, C., El Younoussi, Y., and Achbal, F. (2017, January 11–13). An Overview of a Distributional Word Representation for an Arabic Named Entity Recognition System. Proceedings of the Ninth International Conference on Soft Computing and Pattern Recognition (SoCPaR 2017), Marrakech, Morocco.10.1007/978-3-319-76357-6_13 ↗
9. Comparative study of Arabic Word Embeddings: Evaluation and Application
10. A benchmark for evaluating Arabic word embedding models
11. AraVec: A set of Arabic Word Embedding Models for use in Arabic NLP10.1016/j.procs.2017.10.117 ↗
12. Mikolov, T., Grave, E., Bojanowski, P., Puhrsch, C., and Joulin, A. (2017). Advances in Pre-Training Distributed Word Representations. arXiv.
13. Comparative study of word embedding methods in topic segmentation10.1016/j.procs.2017.08.009 ↗
14. Pennington, J., Socher, R., and Manning, C. (2014, January 25–29). GloVe: Global Vectors for Word Representation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1162 ↗
15. Athiwaratkun, B., Wilson, A.G., and Anandkumar, A. (2018). Probabilistic FastText for Multi-Sense Word Embeddings. arXiv.10.18653/v1/P18-1001 ↗
16. A review of sentiment analysis research in Arabic language10.1016/j.future.2020.05.034 ↗
17. Kayraldeen, A. (2024, September 28). Ketab Alaalam. Available online: https://www.kutubltd.com/book_year/1926/.
18. Abbas, M. (2024, September 28). Watan 2004 Corpus. Available online: https://metatext.io/datasets/watan-2004-corpus.
19. Attardi, G. (2024, September 28). WikiExtractor. Available online: https://github.com/attardi/wikiextractor.
20. Chen, Z., He, Z., Liu, X., and Bian, J. (2018). Evaluating semantic relations in neural word embeddings with biomedical and general domain knowledge bases. BMC Med. Inform. Decis. Mak., 18.10.1186/s12911-018-0630-x ↗
21. Gelbukh, A. Word Representations in Vector Space and their Applications for Arabic. Proceedings of the Computational Linguistics and Intelligent Text Processing.
22. Dahou, A., Xiong, S., Zhou, J., Haddoud, M.H., and Duan, P. (2016, January 11–16). Word Embeddings and Convolutional Neural Network for Arabic Sentiment Classification. Proceedings of the COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, Osaka, Japan.
23. Gladkova, A., Drozd, A., and Matsuoka, S. (2016, January 13–15). Analogy-based detection of morphological and semantic relations with word embeddings: What works and what doesn’t. Proceedings of the NAACL Student Research Workshop, San Diego, CA, USA.10.18653/v1/N16-2002 ↗
24. Gelbukh, A. SART - Similarity, Analogies, and Relatedness for Tatar Language: New Benchmark Datasets for Word Embeddings Evaluation. Proceedings of the Computational Linguistics and Intelligent Text Processing.
25. Elrazzaz, M., Elbassuoni, S., Shaban, K., and Helwe, C. (August, January 30). Methodical Evaluation of Arabic Word Embeddings. Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Vancouver, BC, Canada.
26. Abdul-Mageed, M., Elbassuoni, S., Doughman, J., Elmadany, A., Nagoudi, E.M.B., Zoughby, Y., Shaher, A., Gaba, I., Helal, A., and El-Razzaz, M. (2021, January 19). DiaLex: A Benchmark for Evaluating Multidialectal Arabic Word Embeddings. Proceedings of the Sixth Arabic Natural Language Processing Workshop, Kyiv, Ukraine (Virtual).
27. Improving sentiment analysis in Arabic: A combined approach
28. Ibrahim, H.S., Abdou, S.M., and Gheith, M. (2015). Sentiment Analysis For Modern Standard Arabic And Colloquial. arXiv.10.5121/ijnlc.2015.4207 ↗
29. A Hybrid Framework for Sentiment Analysis Using Genetic Algorithm Based Feature Reduction10.1109/ACCESS.2019.2892852 ↗
30. Deep learning for Arabic subjective sentiment analysis: Challenges and research opportunities10.1016/j.asoc.2020.106836 ↗
31. Terad, M. (2024, September 28). Almojam Almofasal; Dar Alkotob Alarabiah. Available online: https://books.google.co.kr/books/about/%D8%A7%D9%84%D9%85%D8%B9%D8%AC%D9%85_%D8%A7%D9%84%D9%85%D9%81%D8%B5%D9%84_%D9%81%D9%8A_%D8%A7%D9%84%D9%85%D8%AA.html?id=6eVhDwAAQBAJ&redir_esc=y.