The invention discloses a text sentiment classification method and
system, and the method comprises the steps: dividing a text
sentence in terms of words, and mapping each word into a word vector; extracting keywords in the text sentences, respectively constructing a word vector attention matrix, a position attention matrix and a part-of-speech attention matrix according to word vectors of the keywords, positions of the keywords in the text sentences and emotion part-of-speech types to which the keywords belong, and fusing the word vector attention matrix, the position attention matrix and thepart-of-speech attention matrix to construct a first feature; adopting a BiGRU network to obtain a second feature according to the context
semantic information of the keyword; and classifying the emotion types of the text sentences to be tested by adopting a multi-attention
convolutional neural network model trained by taking the first features and the second features as a
training set. Accordingto the method, a keyword sentiment classification first-dimensional feature is obtained in combination with a CNN model of a multi-attention mechanism, an initial
sentence sentiment classification second-dimensional feature is obtained through BiGRU, the two dimensional features are fused, the text deep-level semantic
perception capability is improved, and then the text sentiment classification accuracy is improved.