《计算机应用》唯一官方网站 ›› 2023, Vol. 43 ›› Issue (10): 3086-3092.DOI: 10.11772/j.issn.1001-9081.2022101482

• 人工智能 • 上一篇    

具有方面项和上下文表示的方面情感分析

徐丹, 龚红仿(), 罗容容   

  1. 长沙理工大学 数学与统计学院,长沙 410114
  • 收稿日期:2022-10-11 修回日期:2023-04-04 接受日期:2023-04-10 发布日期:2023-05-24 出版日期:2023-10-10
  • 通讯作者: 龚红仿
  • 作者简介:徐丹(1997—),女,湖南娄底人,硕士研究生,主要研究方向:自然语言处理、情感分析
    罗容容(1997—),女,湖南邵阳人,硕士研究生,主要研究方向:自然语言处理、情感分析。
  • 基金资助:
    国家自然科学基金资助项目(61972055);湖南省自然科学基金资助项目(2021JJ30734)

Aspect sentiment analysis with aspect item and context representation

Dan XU, Hongfang GONG(), Rongrong LUO   

  1. School of Mathematics and Statistics,Changsha University of Science and Technology,Changsha Hunan 410114,China
  • Received:2022-10-11 Revised:2023-04-04 Accepted:2023-04-10 Online:2023-05-24 Published:2023-10-10
  • Contact: Hongfang GONG
  • About author:XU Dan, born in 1997, M. S. candidate. Her research interests include natural language processing, sentiment analysis.
    LUO Rongrong, born in 1997, M. S. candidate. Her research interests include natural language processing, sentiment analysis.
  • Supported by:
    National Natural Science Foundation of China(61972055);Natural Science Foundation of Hunan Province(2021JJ30734)

摘要:

针对预测特定方面情感极性时存在只依赖单一方面项而忽略了同一句子中方面项之间间情感依赖关系的问题,提出一种具有方面项和上下文表示的多层多跳记忆网络(AICR-M3net)。首先,通过双向门控循环单元(Bi-GRU)融合位置加权信息,并将隐藏层输出作为混合上下文编码层的输入以获取与上下文语义关联度更高的上下文表示;其次,引入多层多跳记忆网络(M3net)多次逐词匹配方面词和上下文,从而生成特定上下文的方面词向量;同时,建模特定方面项与句子中其他方面项的情感依赖性,从而引导特定方面项的上下文向量的生成。在Restaurant、Laptop和Twitter数据集上的实验结果表明,与AOA-MultiACIA (Attention-Over-Attention Multi-layer Aspect-Context Interactive Attention)相比,所提模型的分类准确率分别提高了1.34、3.05和2.02个百分点,F1值分别提高了3.90、3.78和2.94个百分点。以上验证了所提模型能更有效地处理上下文中多方面的混合信息,且在处理特定方面情感分类任务中具有一定的优势。

关键词: 特定方面情感分析, 情感依赖, 记忆网络, 多头注意力机制, 门控循环单元

Abstract:

When predicting the emotional polarity of a specific aspect, there is a problem of only depending on a single aspect item and ignoring the emotional dependence between aspect items in the same sentence, a Multi-layer Multi-hop Memory network with Aspect Item and Context Representation (AICR-M3net) was proposed. Firstly, the position weighting information was fused by Bi-directional Gated Recurrent Unit (Bi-GRU), and the hidden layer output was used as the input of the mixed context coding layer to obtain a context representation with higher semantic relevance to the context. Then, Multi-layer Multi-hop Memory Networks (M3net) was introduced to match aspect words and context many times and word by word to generate aspect word vectors of specific context. At the same time, the emotional dependence between specific aspect item and other aspect items in the sentence was modeled to guide the generation of context vector of specific aspect item. Experimental results on Restaurant, Laptop and Twitter datasets show that the proposed model has the classification accuracy improved by 1.34, 3.05 and 2.02 percentage points respectively, and the F1 score increased by 3.90, 3.78 and 2.94 percentage points respectively, compared with AOA-MultiACIA (Attention-Over-Attention Multi-layer Aspect-Context Interactive Attention). The above verifies that the proposed model can deal with the mixed information with multiple aspects in context more effectively, and has certain advantages in dealing with the sentiment classification task in specific aspects.

Key words: aspect-specific sentiment analysis, emotional dependence, Memory Network (MN), Multi-Head Attention (MHA) mechanism, Gated Recurrent Unit (GRU)

中图分类号: