ACS Applied Computer Science

  • Increase font size
  • Default font size
  • Decrease font size

Effectiveness of large language models and software libraries in sentiment analysis

Print

This paper investigates the effectiveness of selected tools for sentiment analysis, focusing on both dedicated software libraries (NLTK, Pattern, TextBlob) and large language models (ChatGPT and Gemini). The evaluation was conducted in two stages: sentiment analysis of 30 synthetic opinions of varying linguistic complexity, and analysis of 5 sets of real user reviews collected from the web. The results show that large language models - although not explicitly designed for sentiment analysis - achieved the highest accuracy, with ChatGPT consistently producing the lowest deviation from human ratings. In contrast, software libraries showed greater variation, especially in the presence of complex linguistic structures. These findings highlight the potential of large language models in sentiment analysis tasks and underscore their robustness in interpreting nuanced language.

  • APA 7th style
Wojdecka, A., Gromadziński, J., & Walczak, K. (2025). Effectiveness of large language models and software libraries in sentiment analysis. Applied Computer Science, 21(2), 128–138. https://doi.org/10.35784/acs_6936
  • Chicago style
Wojdecka, Agnieszka, Jakub Gromadziński, and Krzysztof Walczak. ‘Effectiveness of Large Language Models and Software Libraries in Sentiment Analysis’. Applied Computer Science 21, no. 2 (2025): 128–38. https://doi.org/10.35784/acs_6936.
  • IEEE style
A. Wojdecka, J. Gromadziński, and K. Walczak, ‘Effectiveness of large language models and software libraries in sentiment analysis’, Applied Computer Science, vol. 21, no. 2, pp. 128–138, doi: 10.35784/acs_6936.
  • Vancouver style
Wojdecka A, Gromadziński J, Walczak K. Effectiveness of large language models and software libraries in sentiment analysis. Applied Computer Science. 2025; 21(2):128–38.