Abstract
Aiming at the lack of specific domain corpus in text sentiment polarity analysis, the inaccurate classification accuracy of the naive Bayes algorithm due to the independence assumption and the sparse word vector matrix, a text sentiment analysis method based on the improved naive Bayes algorithm is proposed. Combining machine learning methods with domain sentiment dictionary weighting methods. The improved word frequency inverse file frequency algorithm is used to extract the feature word vector of hotel review text, and the weight of the feature word vector of the domain dictionary after regression test is introduced to weaken the influence of the independence assumption. The singular value decomposition algorithm realizes the dimensionality reduction of the word vector sparse matrix and eliminates redundancy. The remaining features are used to construct a polynomial model of Naive Bayes. The results of simulation research show that this method can effectively improve the effect of text sentiment classification.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Huang, L.W., Jiang, B.T., Lu, S.Y.: A survey of research on recommendation systems based on deep learning. Chin. J. Comput. 41(07), 1619–1647 (2018)
Lin, J.H., Zhou, Y.M., Yang, A.M.: The construction of domain sentiment dictionary based on word vector. J. Shandong Univ. (Eng. Technol. Ed.) 48(03), 40–47 (2018)
Wu, J.S., Lu, K.: Research on sentiment analysis of Chinese Weibo based on multiple sentiment dictionaries and rule sets. Comput. Appl. Softw. 36(09), 93–99 (2019)
Yang, X., Jiao, W.: Sentiment analysis of homestay reviews based on domain dictionary. Sci. Technol. Eng. 20(07), 2794–2800 (2020)
Hu, S.C., Sun, J.P., Ju, S.G.: Chinese sentiment feature selection method based on extended sentiment dictionary and chi-square model. J. Sichuan Univ. (Nat. Sci. Ed.) 56(01), 37–44 (2019)
Zhu, J., Liu, J.Y., Zhang, T.F.: Emotion polarity classification method based on sentiment dictionary and ensemble learning. Comput. Appl. 38(S1), 95–98 (2018)
Liu, L., Li, X.Y., Huang, Y.F.: Emotional fuzzy computing classification method based on ensemble learning. Comput. Eng. Des. 39(07), 1872–1876 (2018)
Cheng, Y., Yao, L.B., Zhang, G.H.: Multi-channel CNN and BiGRU based on attention mechanism text sentiment tendency analysis. Comput. Res. Dev. 57(12), 2583–2595 (2020)
Chen, K., Xie, B., Zhu, X.T.: Research on sentiment analysis algorithm based on sentiment dictionary and transformer model. J. Nanjing Univ. Posts Telecommun. (Nat. Sci. Ed.) 40(01), 55–62 (2020)
Shao, L.S., Zhou, Y.: Research on sentiment classification of online comments based on semantic rules and RNN model. Chin. J. Inf. 33(06), 124–131 (2019)
Saraswathy, K.S., Devi, S.L.: Enhancement of sentiment analysis using clause and discourse connectives. Comput. Mater. Continua 68(2), 1981–1999 (2021)
Ibrahim, A.F., Hassaballah, M., Ali, A.A.: Covid19 outbreak: a hierarchical framework for user sentiment analysis. Comput. Mater. Continua 70(2), 2507–2524 (2022)
Lin, Z.L., Wang, X.C., Gu, Y.: Fast sentiment analysis algorithm based on double model fusion. Comput. Syst. Sci. Eng. 36(1), 175–188 (2021)
Muhammad, A., Abdullah, S., Sani, N.S.: Optimization of sentiment analysis using teaching-learning based algorithm. Comput. Mater. Continua 69(2), 1783–1799 (2021)
Hnaif, A.A., Kanan, E., Kanan, T.: Sentiment analysis for Arabic social media news polarity. Intell. Autom. Soft Comput. 28(1), 107–119 (2021)
Xu, Y.Y., Chai, Y.M., Wang, L.M., et al.: Emotional sentence classification method based on OCC model and Bayesian network. Comput. Sci. 47(03), 222–230 (2020)
Li, X.D., Xiao, J.Y., Zou, Y.F.: Research on sentiment classification based on improved TF-IDF and Hidden Naive Bayes. J. Nanhua Univ. (Nat. Sci. Ed.) 33(02), 79–84 (2019)
Zeng, Y., Liu, P.Y., Liu, W.F., et al.: Naive Bayes sentiment classification algorithm based on feature weighted fusion. J. Northwest Norm. Univ. 53(04), 56–60 (2017)
Luo, H.Q., Lu, X.Y., Zhang, X.B., et al.: Emotion classification method of product reviews based on Hidden Naive Bayes. Comput. Eng. Des. 38(01), 203–208 (2017)
Qi, Y., Qiao, Y.: Text categorization based on naive Bayesian. Electron. Sci. Technol. 4(5), 114–116 (2017)
Xie, X.L., Li, X.F., Chen, L.B., et al.: A method for classifying hotel reviews emotional polarity based on emotional dictionary weighting. Guangxi Zhuang Autonomous Region: CN113673239A (2021)
Qiu, N.J., Cong, L., Zhou, S.C., et al.: SVD-CNN barrage text classification algorithm combined with improved active learning. Comput. Appl. 39(03), 644–650 (2019)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Li, X., Xie, X., Wang, J., Tang, Y. (2022). Text Sentiment Analysis Based on Improved Naive Bayes Algorithm. In: Sun, X., Zhang, X., Xia, Z., Bertino, E. (eds) Artificial Intelligence and Security. ICAIS 2022. Lecture Notes in Computer Science, vol 13338. Springer, Cham. https://doi.org/10.1007/978-3-031-06794-5_41
Download citation
DOI: https://doi.org/10.1007/978-3-031-06794-5_41
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-06793-8
Online ISBN: 978-3-031-06794-5
eBook Packages: Computer ScienceComputer Science (R0)