Research Article

Employing the BERT model for sentiment analysis of online commentary

Bowen Li1,*, Xiaolu Liu2, Ruijia Zhang3
1. Henan University
2. National University of Defense Technology
3. Tianjin University of Science and Technology

* Corresponding author: [email protected]

Abstract

The objective of this research is to carry out a tone and semantic sentiment analysis of network comments on new media platforms by leveraging the BERT model. With the burgeoning popularity of social media, network comments, rich in emotional and tonal features, have emerged as a significant part of the online culture. Accurate interpretation and analysis of these comments' sentiment and semantic meanings are paramount to grasping online public opinion and user psychology. In this study, the BERT model, lauded for its bidirectional encoding and contextual understanding capabilities, is selected to scrutinize the sentiment and tone of network comments on new media platforms. Through a process of pre-training and fine-tuning, the sentiment attitudes and polarity of comments are accurately identified along with their conveyed tonal features, such as joy, anger, and sarcasm. Conducting an accurate tone and semantic sentiment analysis of network comments on new media platforms facilitates a profound understanding of user preferences and trends in public opinion. This can assist in optimizing content recommendations, enhancing user experiences, and increasing the operational effectiveness of new media platforms. The outcomes of this research will bear significant implications for studies and applications in online culture, offering invaluable references and guidance in related domains.

Keywords: sentiment analysis; BERT model; new media platforms
Published: January 31, 2024
DOI: 10.54254/2755-2721/32/20230218
Volume: ACE Vol.32
pp. 241-247
Download PDF

References

  1. Devlin, J., Chang, M.W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), 4171-4186.
  2. Cao, Y., Sun, Z., Li, L., & Mo, W. (2022). A Study of Sentiment Analysis Algorithms for Agricultural Product Reviews Based on Improved BERT Model. Symmetry, 14(1), 1604.
  3. Birjali, M., Beni-Hssane, A., Erritali, M. (2017). Machine Learning and Semantic Sentiment Analysis based Algorithms for Suicide Sentiment Prediction in Social Networks. Procedia Computer Science, 113, 65-72.
  4. Turney, P.D. (2002). Thumbs Up or Thumbs Down? Semantic Orientation Applied to Unsupervised Classification of Reviews. Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics (ACL), 417-424.
  5. Peñalver-Martinez, I., Garcia-Sanchez, F., Valencia-Garcia, R., Rodríguez-García, M.Á., Moreno, V., Fraga, A., & Sánchez-Cervantes, J.L. (2014). Feature-based opinion mining through ontologies. Expert Systems with Applications, 41, 5995-6008.
  6. Yang, Z., et al. (2016). Hierarchical attention networks for document classification. Proceedings of the 2016 conference of the North American chapter of the association for computational linguistics: human language technologies.
  7. Sun C, Huang L, Qiu X. Utilizing BERT for aspect-based sentiment analysis via constructing auxiliary sentence[J]. arXiv preprint arXiv:1903.09588, 2019.
  8. Ray B, Garain A, Sarkar R. An ensemble-based hotel recommender system using sentiment analysis and aspect categorization of hotel reviews[J]. Applied Soft Computing, 2021, 98: 106935.
  9. AlQahtani A S M. Product sentiment analysis for amazon reviews[J]. International Journal of Computer Science & Information Technology (IJCSIT) Vol, 2021, 13.
  10. Sudhir P, Suresh V D. Comparative study of various approaches, applications and classifiers for sentiment analysis[J]. Global Transitions Proceedings, 2021, 2(2): 205-211.