The invention relates to an aspect-level
sentiment analysis method based on syntactic guidance Transform, which comprises the following steps of: firstly, constructing a dependency relationship matrix B through dependency analysis, then, calculating a syntactic distance through a syntactic
dependency tree, modeling node importance by utilizing an inverse distance weighting function, and then, fusing the information into a self-attention mechanism of the Transform; secondly, aspect word extraction is conducted through a
conditional random field, a local-global representation fusion layer is designed, local aspect
word representation and global
sentence representation are combined, and the semantic modeling capacity is enhanced; and inputting the data into a Softmax classifier, and outputting an emotion polarity tag. According to the method, the advantages of syntactic information and a self-attention mechanism are combined, the dependency relationship between aspect words and sentiment words can be more effectively modeled, the sentiment polarity classification accuracy is improved, and the context modeling capability of the model is enhanced. A multi-
task learning framework is adopted, aspect word extraction and sentiment polarity classification are carried out in a combined mode, the generalization ability of the model is improved, and aspect-level
sentiment analysis can be carried out more accurately.