Research Article

Sentiment Analysis in Turkish Using Language Models: A Comparative Study

Volume: 15 Number: 1 July 1, 2025
TR EN

Sentiment Analysis in Turkish Using Language Models: A Comparative Study

Abstract

Sentiment analysis is a natural language processing (NLP) task that aims to automatically identify positive, negative and neutral emotions in texts. Agglutinative languages such as Turkish pose challenges for sentiment analysis due to their complex morphological structure. Traditional methods are inadequate for detecting sentiment in texts. Language models (LMs), on the other hand, achieve successful results in sentiment analysis as well as in many other NLP tasks thanks to their ability to learn context and structural features of the language. In this study, XLM-RoBERTa, mBERT, BERTurk 32k, BERTurk 128k, ELECTRA Turkish Small and ELECTRA Turkish Base models were fine-tuned using the Turkish Sentiment Analysis – Version 1 (TRSAv1) dataset and the performances of the models were compared. The dataset consists of 150,000 texts containing user comments on e-commerce platforms. The classes have a balanced distribution for positive, negative and neutral classes. The fine-tuned models are evaluated using the test set with metrics such as accuracy, precision, recall and F1 score. The findings show that models customized for the Turkish language exhibit better performance in emotion detection compared to multilingual models. The BERTurk 32k model achieved strong results with an accuracy of 83.69% and an F1 score of 83.65%, while the BERTurk 128k model followed closely with an accuracy of 83.68% and an F1 score of 83.66%. On the other hand, the XLM-RoBERTa model, a multilingual model, delivered competitive performance with an accuracy of 83.27% and an F1 score of 83.22%.

Keywords

References

  1. [1] I. Yaqoob, I. A. T. Hashem, A. Gani, S. Mokhtar, E. Ahmed, N. B. Anuar, and A. V. Vasilakos, “Big data: From beginning to future,” Int. J. Inf. Manage., vol. 36, no. 6, pp. 1231–1247, 2016.
  2. [2] S. Mittal, A. Goel, and R. Jain, “Sentiment analysis of E-commerce and social networking sites,” in Proc. 3rd Int. Conf. Comput. Sustainable Global Develop. (INDIACom), 2016, pp. 2300–2305.
  3. [3] M. Rodríguez-Ibáñez, A. Casánez-Ventura, F. Castejón-Mateos, and P.-M. Cuenca-Jiménez, “A review on sentiment analysis from social media platforms,” Expert Syst. Appl., vol. 223, p. 119862, 2023.
  4. [4] M. Marong, N. K. Batcha, and R. Mafas, “Sentiment analysis in e-commerce: A review on the techniques and algorithms,” J. Appl. Technol. Innov., vol. 4, no. 1, p. 6, 2020.
  5. [5] M. Wankhade, A. C. S. Rao, and C. Kulkarni, “A survey on sentiment analysis methods, applications, and challenges,” Artif. Intell. Rev., vol. 55, no. 7, pp. 5731–5780, 2022.
  6. [6] A. P. Jain and P. Dandannavar, “Application of machine learning techniques to sentiment analysis,” in Proc. 2nd Int. Conf. Appl. Theor. Comput. Commun. Technol. (iCATccT), 2016, pp. 628–632.
  7. [7] C. S. G. Khoo and S. B. Johnkhan, “Lexicon-based sentiment analysis: Comparative evaluation of six sentiment lexicons,” J. Inf. Sci., vol. 44, no. 4, pp. 491–511, 2018.
  8. [8] M. Ahmad, S. Aftab, and I. Ali, “Sentiment analysis of tweets using SVM,” Int. J. Comput. Appl., vol. 177, no. 5, pp. 25–29, 2017.

Details

Primary Language

English

Subjects

Software Engineering (Other)

Journal Section

Research Article

Early Pub Date

July 1, 2025

Publication Date

July 1, 2025

Submission Date

November 27, 2024

Acceptance Date

June 23, 2025

Published in Issue

Year 2025 Volume: 15 Number: 1

APA
İncidelen, M., & Aydoğan, M. (2025). Sentiment Analysis in Turkish Using Language Models: A Comparative Study. European Journal of Technique (EJT), 15(1), 68-74. https://doi.org/10.36222/ejt.1592448
AMA
1.İncidelen M, Aydoğan M. Sentiment Analysis in Turkish Using Language Models: A Comparative Study. EJT. 2025;15(1):68-74. doi:10.36222/ejt.1592448
Chicago
İncidelen, Mert, and Murat Aydoğan. 2025. “Sentiment Analysis in Turkish Using Language Models: A Comparative Study”. European Journal of Technique (EJT) 15 (1): 68-74. https://doi.org/10.36222/ejt.1592448.
EndNote
İncidelen M, Aydoğan M (July 1, 2025) Sentiment Analysis in Turkish Using Language Models: A Comparative Study. European Journal of Technique (EJT) 15 1 68–74.
IEEE
[1]M. İncidelen and M. Aydoğan, “Sentiment Analysis in Turkish Using Language Models: A Comparative Study”, EJT, vol. 15, no. 1, pp. 68–74, July 2025, doi: 10.36222/ejt.1592448.
ISNAD
İncidelen, Mert - Aydoğan, Murat. “Sentiment Analysis in Turkish Using Language Models: A Comparative Study”. European Journal of Technique (EJT) 15/1 (July 1, 2025): 68-74. https://doi.org/10.36222/ejt.1592448.
JAMA
1.İncidelen M, Aydoğan M. Sentiment Analysis in Turkish Using Language Models: A Comparative Study. EJT. 2025;15:68–74.
MLA
İncidelen, Mert, and Murat Aydoğan. “Sentiment Analysis in Turkish Using Language Models: A Comparative Study”. European Journal of Technique (EJT), vol. 15, no. 1, July 2025, pp. 68-74, doi:10.36222/ejt.1592448.
Vancouver
1.Mert İncidelen, Murat Aydoğan. Sentiment Analysis in Turkish Using Language Models: A Comparative Study. EJT. 2025 Jul. 1;15(1):68-74. doi:10.36222/ejt.1592448

All articles published by EJT are licensed under the Creative Commons Attribution 4.0 International License. This permits anyone to copy, redistribute, remix, transmit and adapt the work provided the original work and source is appropriately cited.Creative Commons Lisansı