Abstract

The key sentimental words in the text cannot be paid attention to effectively, and language knowledge such as the text information and the sentimental resources are relied on. Therefore, it is necessary to make full use of this unique sentimental information to achieve the best performance of the model. In order to solve the problems, a method based on the fusion of the convolutional neural network and the bidirectional GRU network text sentiment analysis capsule model to analyze the ideological and political education of public opinion is put forward. In this model, each sentiment category is combined with the attention mechanism to generate feature vectors to construct sentiment capsules. Finally, the text sentiment categories are judged according to the attributes of the capsules. The model is tested on MR, IMDB, SST-5, and the data set of the ideological and political education review. Experimental results show that compared with MC-CNN-LSTM, the readiness rate of the proposed model is improved by 5.1%, 2.8%, 2.8%, and 1.6% on four public Chinese and English data sets, respectively. Compared with LR-Bi-LSTM, NSCL, and multi-Bi-LSTM models, the accuracy of the proposed MC-BiGRU-Capsule model on MR and SST-5 data are 3.2%, 2.4%, and 3.4% higher than that of the LR-Bi-LSTM, NSCL, and multi-Bi-LSTM models, respectively. It also shows a better classification effect on multiclassification data sets. It is concluded that compared with other baseline models, this method has a better classification effect.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.