Aiming at the problem that normal vector representation method cannot fully represent the emotional semantic information contained in the text when dealing with Chinese text sentiment analysis task, a multi-granularity convolutional capsule neural network model is constructed. The input of sentiment analysis model is vector representation of the texts trained through the language model. As there exists the problem that a single language model is not enough to abstract text features, a multi-granularity text vector representation method based on BERT is proposed. The text vector representations with different granularities are input into the improved multi-channel convolutional capsule neural network. The capsule layer can associate the low-level and high-level text features, and it will extract information selectively through the dynamic routing algorithm to construct emotional and semantic features of the whole text. Multiple comparative experiments confirm that the method proposed in this paper will efficiently improve the accuracy of Chinese sentiment analysis.
Read full abstract