Journal of Jilin University Science Edition ›› 2023, Vol. 61 ›› Issue (6): 1375-1386.

Previous Articles     Next Articles

Aspect-Level Sentiment Classification Method Incorporating Part-of-Speech Self-attention Mechanism

DU Mengyang, WANG Hongbin, PU Xianghe   

  1. Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650504, China;  Yunnan Key Laboratory of Artificial Intelligence, Kunming University of Science and Technology, Kunming 650504, China;  Yunnan Key Laboratory of Computer Technology Application, Kunming University of Science and Technology, Kunming 650504, China
  • Received:2023-02-02 Online:2023-11-26 Published:2023-11-26

Abstract: Aiming at the problem that the attention mechanism-based model ignored the  part-of-speech information of words in the aspect-level sentiment classification task, we proposed  an aspect-level sentiment classification method that incorporated a part-of-speech self-attention  mechanism. Firstly, the method  was based on the natural language processing part-of-speech tagging tool to obtain part-of-speech tagging sequence, and randomly initialized a part-of-speech embedding matrix to obtain part-of-speech embedding vector. Secondly,  the self-attention mechanism was used to learn the syntactic dependence between words. Finally the sentiment score of each word was calculated, the combination of word sentiment was used to express the polarity of sentiment in specific aspects.  The experimental results show that compared with baseline model with the best performance in 5 public datasets, this method improves the accuracy and macro F1 score by 2% and 4.83% respectively, indicating  that the attention mechanism model incorporating part-of-speech information has better performance in aspect-level sentiment classification task.

Key words: aspect-level sentiment classification, part-of-speech embedding, self-attention mechanism, sentiment score

CLC Number: 

  • TP391.1