The present application relates to the technical field of
natural language processing, in particular to an implicit
sentiment analysis method based on
syntax enhancement and
context awareness, which solves the technical problems that the existing
analysis method ignores the difference of sentiment contribution of different
syntax relations and easily introduces irrelevant semantic
noise, etc., which encodes the word vector of the target
sentence and its context
sentence to obtain the text
semantic feature of the target
sentence and the text context feature of the target sentence; a
syntax dependency relation weight matrix is constructed to fuse the text
semantic feature and the syntax feature of the target sentence to obtain the syntax semantic joint feature; the
cosine similarity of the target sentence and its context sentence is calculated and the context features are weighted and aggregated to obtain the aggregated context features; the local to global sentiment reasoning is realized by using the self-attention mechanism, the gated fusion and the hierarchical
feature fusion framework based on bidirectional LSTM; the sentence-level global feature is input into the full connection layer to predict the sentiment polarity probability distribution of the target sentence, and finally the sentiment
label category of the target sentence is obtained.