The invention discloses a specific target emotion
analysis method based on a multi-channel model. According to the specific target emotion
analysis method, target words and contexts are fully utilized, the method is provided with three channels, and expression of the target words and the contexts is obtained through a hierarchical
pooling mechanism, an interaction attention mechanism and an attention
mechanism based on the
Euclidean distance. Through the three channels, the target words and the context can learn the expression helpful for sentiment classification; the technical scheme is as follows: (1) inputting a SemEval2014
data set, preprocessing the
data set and dividing the
data set into a
training set and a
test set; (2) inputting the preprocessed data into three channels respectively, and performing
feature extraction to obtain vectors r1, r2, r3, r4 and r5; (3) obtaining a
classification result through learning of an attention mechanism by utilizing vectors r1, r2, r3, r4 andr5; (4) carrying out sentiment classification on a specific target of each comment text in the
test set by using the trained model, and comparing the sentiment classification with a
label of the testset to calculate the classification accuracy; the invention belongs to the fields of
natural language processing technology and sentiment calculation.