Journal of Computer Applications ›› 2024, Vol. 44 ›› Issue (4): 1058-1064.DOI: 10.11772/j.issn.1001-9081.2023040497

• Artificial intelligence • Previous Articles    

Aspect-level sentiment analysis model based on alternating‑attention mechanism and graph convolutional network

Xianfeng YANG1(), Yilei TANG1, Ziqiang LI2   

  1. 1.School of Computer Science and Software Engineering,Southwest Petroleum University,Chengdu Sichuan 610500,China
    2.College of Movie and Media,Sichuan Normal University,Chengdu Sichuan 610066,China
  • Received:2023-04-28 Revised:2023-06-13 Accepted:2023-06-30 Online:2024-04-22 Published:2024-04-10
  • Contact: Xianfeng YANG
  • About author:YANG Xianfeng, born in 1974, M. S., professor. Her research interests include computer image processing, wisdom education.
    TANG Yilei, born in 2000, M. S. candidate. His research interests include natural language processing.
    LI Ziqiang, born in 1970,Ph. D., professor. His research interests include machine learning, wisdom education, natural language processing.
  • Supported by:
    National Natural Science Foundation of China(61802321);Key Research and Development Program of Science and Technology Department of Sichuan Province(2020YFN0019)

基于交替注意力机制和图卷积网络的方面级情感分析模型

杨先凤1(), 汤依磊1, 李自强2   

  1. 1.西南石油大学 计算机与软件学院,成都 610500
    2.四川师范大学 影视与传媒学院,成都 610066
  • 通讯作者: 杨先凤
  • 作者简介:杨先凤(1974—),女,四川南部人,教授,硕士,主要研究方向:计算机图像处理、智慧教育 565695835@qq.com
    汤依磊(2000—),男,重庆人,硕士研究生,主要研究方向:自然语言处理
    李自强(1970—),男,四川青神人,教授,博士,CCF会员,主要研究方向:机器学习、智慧教育、自然语言处理。
  • 基金资助:
    国家自然科学基金资助项目(61802321);四川省科技厅重点研发计划项目(2020YFN0019)

Abstract:

Aspect-level sentiment analysis aims to predict the sentiment polarity of specific target in given text. Aiming at the problem of ignoring the syntactic relationship between aspect words and context and reducing the attention difference caused by average pooling, an aspect-level sentiment analysis model based on Alternating-Attention (AA) mechanism and Graph Convolutional Network (AA-GCN) was proposed. Firstly, the Bidirectional Long Short-Term Memory (Bi-LSTM) network was used to semantically model context and aspect words. Secondly, the GCN based on syntactic dependency tree was used to learn location information and dependencies, and the AA mechanism was used for multi-level interactive learning to adaptively adjust the attention to the target word. Finally, the final classification basis was obtained by splicing the corrected aspect features and context features. Compared with the Target-Dependent Graph Attention Network (TD-GAT), the accuracies of the proposed model on four public datasets increased by 1.13%-2.67%, and the F1 values on five public datasets increased by 0.98%-4.89%, indicating the effectiveness of using syntactic relationships and increasing keyword attention.

Key words: Natural Language Processing (NLP), deep learning, aspect-level sentiment analysis, Alternating?Attention (AA) mechanism, Graph Convolutional Network (GCN)

摘要:

方面级情感分析旨在预测给定文本中特定目标的情感极性。针对忽略方面词和上下文之间的句法关系和平均池化带来的注意力差异性变小的问题,提出一种基于交替注意力(AA)机制和图卷积网络(GCN)的方面级情感分析模型(AA-GCN)。首先,利用双向长短期记忆(Bi-LSTM)网络对上下文和方面词进行语义建模;其次,通过基于句法依存树的GCN学习位置信息和依赖关系,再利用AA机制进行多层次交互学习,自适应地调整对目标词的关注度;最后,拼接修正后的方面特征和上下文特征,得到最终的分类依据。相较于基于目标依赖的图注意力网络(TD-GAT),所提模型在4个公开数据集上准确率提升了1.13%~2.67%,在5个公开数据集上F1值提升了0.98%~4.89%,验证了利用句法关系和提升关键词关注度的有效性。

关键词: 自然语言处理, 深度学习, 方面级情感分析, 交替注意力机制, 图卷积网络

CLC Number: