Journal of Shanghai University(Natural Science Edition) ›› 2022, Vol. 28 ›› Issue (1): 157-169.doi: 10.12066/j.issn.1007-2861.2265

• Digital Film and Television Technology • Previous Articles     Next Articles

Inner-relation modelling with memory networks in aspect-based sentiment analysis

ZHANG Ke, ZHANG Wenjun(), ZHU Yunwen, XING Yixue   

  1. Shanghai Film Academy, Shanghai University, Shanghai 200072, China
  • Received:2020-03-23 Online:2022-02-28 Published:2020-10-19
  • Contact: ZHANG Wenjun E-mail:wjzhang@shu.edu.cn

Abstract:

Aspect-based sentiment analysis (ABSA) predicts the sentiment polarity of particular entities in given sentences. Studies show that the most effective methods use features obtained by modelling entities and their contexts with attention to sentiment prediction. However, these methods calculate the attention weights of contexts by using mean vectors for target entities. In addition, these methods cannot highlight the importance of individual words in the text of whole sentences. Therefore, this study proposes an aspect-based sentiment analysis method that can model the inner relations with memory networks, where networks can learn more effective contextual representations. First, gated recurrent units (GRUs) are used to embed the distributed representations of aspect words and words in sentences. Then, a long short-term memory network (LSTM) takes the distributed representation as input to increase the weights of entities according to the attention-based contextual relationship. Finally, through a query mechanism, aspect-based sentiment polarity is obtained. The proposed model is tested on the open-source datasets Semeval-2014 and Semeval-2016, with results showing that the proposed method is effective and the accuracy is higher than that of the baselines.

Key words: aspect, sentiment analysis, inner relation, gated recurrent unit (GRU), long short-term memory (LSTM)

CLC Number: