• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2026, Vol. 48 ›› Issue (2): 299-308.

• 人工智能与数据挖掘 • 上一篇    下一篇

基于双编码器和知识增强的方面情感三元组抽取

邓飞,韩虎,穆一茹,徐学锋   

  1. (1.兰州交通大学电子与信息工程学院,甘肃 兰州 730070;2.甘肃省人工智能与图形图像工程研究中心,甘肃 兰州 730070)

  • 出版日期:2026-02-25 发布日期:2026-03-10

Aspect sentiment triplet extraction based on dual encoder and knowledge enhancement

DENG Fei,HAN Hu,MU Yiru,XU Xuefeng   

  1. (1.School of Electronic and Information Engineering,Lanzhou Jiaotong University,Lanzhou 730070;
    2.Gansu Provincial Engineering Center for Artificial Intelligence and Graphic & Image Processing,Lanzhou 730070,China)
  • Online:2026-02-25 Published:2026-03-10

摘要: 方面情感三元组抽取旨在从句子中识别方面词,意见词以及相应的情感极性。针对现有研究未充分考虑方面词和意见词之间的关联关系,以及存在语义信息提取不充分和背景知识利用不全面的问题,提出一种基于双编码器和知识增强的方面情感三元组抽取模型。首先,同时使用BERT和Bi-LSTM双编码器从不同层面挖掘句子中的语义信息,并融合外部情感知识增强文本的情感表达;其次,通过位置嵌入的交互注意力对方面和意见之间的关系进行交互迭代学习;最后,利用边界驱动表格填充的方法预测三元组。实验结果表明,该模型与主流模型GTS-BERT相比,在4个公开数据集上的F1值分别提高了9.43个百分点、7.32个百分点、7.43个百分点和4.78个百分点,能够准确地进行三元组的提取。


关键词: 方面情感三元组抽取, 双编码器, 交互注意力, 情感知识, 位置嵌入

Abstract: Aspect sentiment triplet extraction aims to identify aspect words, opinion words, and corresponding sentiment polarity from sentences. Existing studies have not fully considered the correlation relationship between aspect words and opinion words, and also suffer from the problems of insufficient semantic information extraction and incomplete utilization of background knowledge. To address the above issues, a dual encoder and knowledge enhancement aspect sentiment triplet extraction model is proposed. Firstly, dual encoders of BERT and Bi-LSTM are used simultaneously to mine semantic information in sentences from different levels and integrate external affective knowledge to enhance the sentiment expression of the text. Secondly, the relationship between aspects and opinions is learned interactively and iteratively by position embedding interactive attention. Finally, the triplet is predicted using a boundary-driven table-filling method. The experimental results show that the model can accurately perform triplet extraction by improving the F1 values on the four public datasets by 9.43 percentage points, 7.32 percentage points, 7.43 percentage points and 4.78 percentage points, respectively, compared with the mainstream model GTS-BERT.

Key words: aspect sentiment triplet extraction, dual encoder, interactive attention, affective knowledge, position embedding