首页|期刊导航|山西大学学报(自然科学版)|基于常识知识和情绪知识语义不一致的讽刺检测方法

基于常识知识和情绪知识语义不一致的讽刺检测方法OA

Semantic Incongruity Incorporating Commonsense and Emotional Knowledge for Sarcasm Detection

中文摘要英文摘要

讽刺是一种文本字面含义与真实情感意图之间存在不一致的修辞手法,准确建模语义不一致对于实现精准的讽刺检测至关重要.语义不一致不仅存在于文本本身的表述中,更与常识知识和情绪知识密切相关.然而,现有研究一般仅局限于单独探讨文本与常识知识或文本与情绪知识之间的语义不一致,缺乏同时考虑文本与两种外部知识的语义不一致.针对上述问题,该文提出了一种基于常识知识和情绪知识语义不一致的讽刺检测方法(Semantic Incongruity Incorporating Commonsense and Emotional Knowledge for Sarcasm Detection,SIICE).SIICE模型采用注意力机制对文本语义、常识知识和情绪知识相互之间存在的语义不一致进行建模,并融合三种不一致信息进行讽刺检测.SIICE模型包含四个模块:文本语义不一致感知模块、常识知识语义不一致感知模块、情绪知识语义不一致感知模块和融合预测模块.其中,前三个模块分别利用注意力机制获取文本内部、文本与常识转换器(Commonsense Transformers,COMET)生成的常识知识之间,以及文本与效价、唤醒度与支配度(Valence-Arous-al-Dominance,VAD)情绪模型生成的情绪知识之间的语义不一致表示;融合预测模块将上述三种表示拼接后进行讽刺检测.为了验证SIICE模型的有效性,该文在Twitter(Ptáček)、IAC-V1和IAC-V2三个基准数据集上进行实验评估,结果表明SIICE模型在讽刺检测任务中的性能优于多个基线模型,F1值分别达到0.870 3、0.704 9和0.783 5.消融实验表明,同时建模文本与常识知识及情绪知识之间的语义不一致可以有效提升讽刺检测模型的性能.

Sarcasm involves semantic incongruity between literal meanings and intended emotions.Accurate modeling of such incon-gruity is critical for sarcasm detection.Semantic incongruity occurs not only within textual content but also between the text and ex-ternal commonsense and emotional knowledge.Previous studies typically considered semantic incongruity either between text and commonsense or text and emotional knowledge separately,neglecting their joint influence.This study proposed a sarcasm detection model named Semantic Incongruity Incorporating Commonsense and Emotional Knowledge(SIICE).The SIICE model employed an attention mechanism to model semantic incongruities among textual semantics,commonsense knowledge,and emotional knowl-edge.SIICE consisted of four modules:a textual semantic incongruity module,a commonsense semantic incongruity module,an emotional semantic incongruity module,and a fusion prediction module.The first three modules utilized attention mechanisms to capture semantic incongruities within the text,between text and commonsense knowledge generated by COMET(Commonsense Transformers),and between text and emotional knowledge represented via the VAD(Valence-Arousal-Dominance)emotional mod-el,respectively.The fusion module integrated these three representations for sarcasm detection.Experiments were conducted on three benchmark datasets:Twitter(Ptáček),IAC-V1,and IAC-V2.SIICE achieved superior performance compared to baseline mod-els,obtaining F1-scores of 0.870 3,0.704 9,and 0.783 5,respectively.Ablation experiments indicated that simultaneous modeling of semantic incongruities involving text,commonsense,and emotional knowledge effectively enhances sarcasm detection performance.

江浩;万中英;曾雪强;王明文

江西师范大学 人工智能学院,江西 南昌 330022江西师范大学 人工智能学院,江西 南昌 330022江西师范大学 人工智能学院,江西 南昌 330022江西师范大学 人工智能学院,江西 南昌 330022

信息技术与安全科学

讽刺识别语义冲突外部知识情感分布

irony detectionsemantic conflictexternal knowledgeemotion distribution

《山西大学学报(自然科学版)》 2026 (4)

581-591,11

国家自然科学基金(6226602162266023)

10.13451/j.sxu.ns.2025121

评论