《计算机应用》唯一官方网站 ›› 2023, Vol. 43 ›› Issue (1): 45-50.DOI: 10.11772/j.issn.1001-9081.2021111874

所属专题: 人工智能

• 人工智能 • 上一篇    下一篇

融合匹配长短时记忆网络和语法距离的方面级情感分析模型

刘辉1,2, 马祥1,2, 张琳玉1,2, 何如瑾1,2   

  1. 1.重庆邮电大学 通信与信息工程学院,重庆 400065
    2.重庆邮电大学 通信新技术应用研究中心,重庆 400065
  • 收稿日期:2021-11-05 修回日期:2022-04-26 发布日期:2022-05-24
  • 通讯作者: 马祥(1994—),男,安徽淮南人,硕士研究生,主要研究方向:自然语言处理、情感分析;842488692@qq.com
  • 作者简介:刘辉(1966—),男,四川仪陇人,高级工程师,硕士,主要研究方向:自然语言处理、多用户检测算法、电信系统业务;张琳玉(1997—),女,河北石家庄人,硕士研究生,主要研究方向:人工智能、目标检测;何如瑾(1998—),女,湖南邵阳人,硕士研究生,主要研究方向:异常行为检测;

Aspect-based sentiment analysis model integrating match-LSTM network and grammatical distance

LIU Hui1,2, MA Xiang1,2, ZHANG Linyu1,2, HE Rujin1,2   

  1. 1.School of Communication and Information Engineering, Chongqing University of Posts and Telecommunications, Chongqing 400065,China
    2.Research Center of New Telecommunication Technology Applications, Chongqing University of Posts and Telecommunications, Chongqing 400065,China
  • Received:2021-11-05 Revised:2022-04-26 Online:2022-05-24
  • Contact: MA Xiang, born in 1994, M. S. candidate. His research interests include natural language processing, sentiment analysis.
  • About author:LIU Hui, born in 1966, M. S., senior engineer. His research interests include natural language processing, multi-user detection algorithm, telecommunication system business;ZHANG Linyu, born in 1997, M. S. candidate. Her research interests include artificial intelligence, object detection ;HE Rujin, born in 1998, M. S. candidate. Her research interests include abnormal behavior detection;

摘要: 针对现阶段方面级情感分析(ABSA)存在的方面词与不相关上下文错误匹配以及缺乏语法层面特征的问题,提出一种融合匹配长短时记忆网络(mLSTM)和语法距离的ABSA模型mLSTM-GCN。首先,逐词计算方面词与上下文的关联性,并将得到的注意力权重与上下文表示融合作为mLSTM的输入,从而得到与方面词关联度更高的上下文表示;然后,引入语法距离以获得与方面词语法关联度更高的上下文,从而获取更多的上下文特征来指导方面词的建模,并通过方面掩盖层得到方面表示;最后,结合位置权重、上下文表示以及方面表示来进行信息交互,从而获取用于情感分析的特征。在Twitter、REST14和LAP14数据集上的实验结果表明,相较于特定方面的图卷积网络(ASGCN),mLSTM-GCN的准确率分别提升1.32、2.50和1.63个百分点,宏平均F1分别提升2.52、2.19和1.64个百分点。可见,mLSTM-GCN能够有效降低方面词与不相关上下文错误匹配的概率,提升分类效果。

关键词: 方面级情感分析, 长短时记忆网络, 语法距离, 图卷积, 注意力机制

Abstract: Aiming at the problems of the mismatch between aspect words and irrelevant context and the lack of grammatical level features in Aspect-Based Sentiment Analysis (ABSA) at current stage, an improved ABSA model integrating match-Long Short-Term Memory (mLSTM) and grammatical distances was proposed, namely mLSTM-GCN. Firstly, the correlation between the aspect word and the context was calculated word by word, and the obtained attention weight and the context representation were fused as the input of the mLSTM, so that the context representation with higher correlation with the aspect word was obtained. Then, the grammatical distance was introduced to obtain a context which was more grammatically related to the aspect word, so as to obtain more contextual features to guide the modeling of the aspect word, and obtain the aspect representation through the aspect masking layer. Finally, in order to exchange information, location weights, context representations and aspect representations were combined, thereby obtaining the features for sentiment analysis. Experimental results on Twitter, REST14 and LAP14 datasets show that compared with Aspect-Specific Graph Convolutional Network (ASGCN), mLSTM-GCN has the accuracy improved by 1.32, 2.50 and 1.63 percentage points, respectively, and has the Macro-F1 score improved by 2.52, 2.19 and 1.64 percentage points, respectively. Therefore, mLSTM-GCN can effectively reduce the probability of mismatch between aspect words and irrelevant context, and improve the classification effect.

Key words: Aspect-Based Sentiment Analysis (ABSA), Long Short-Term Memory (LSTM) network, grammatical distance, graph convolution, attention mechanism

中图分类号: