Patent attributes
A specific target-oriented social media tweet sentiment analysis method includes: preprocessing social media tweet data to obtain a target text and a specific target; passing the target text and the specific target through an embedding layer to obtain target text word vectors and obtain a specific target word vector, respectively; passing the target text word vectors through a self-attention structure to obtain a self-attention result; combining the self-attention result with the specific target word vector and passing through a cross-attention structure to obtain cross-attention results; concatenating the cross-attention results to obtain an attention representation matrix; and passing the attention representation matrix through a pooling layer, a fully connected layer and a softmax layer to obtain a sentiment tendency of the specific target. The method, based on an attention mechanism in the transformer structure, fuses a local attention mechanism and an attention mechanism containing position information, the analysis accuracy is improved.