arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.01264cs.CLcs.LG
收藏

一种基于MindSpore框架的创新CGL-MHA模型用于讽刺情感识别

An Innovative CGL-MHA Model for Sarcasm Sentiment Recognition Using the MindSpore Framework

Guangxi Police College(广西警察学院)

Zhenkai Qin, Qining Luo, Xunyi Nong

AI总结:

提出一种整合CNN、GRU、LSTM和多头注意力的CGL-MHA模型,在Headlines和Riloff数据集上分别取得81.20%和79.72%的准确率,有效提升社交媒体讽刺检测性能。

摘要:

互联网和社交媒体的普及给自动化情感分析带来了重大挑战,尤其是在用户生成内容中的讽刺表达方面。讽刺通过表面上积极或夸张的语言传达负面情绪,这使其在自然语言处理任务中的检测变得复杂。为解决这一问题,我们提出了一种创新的讽刺检测模型,该模型整合了卷积神经网络(CNN)、门控循环单元(GRU)、长短期记忆网络(LSTM)和多头注意力机制。CNN组件捕获局部n-gram特征,而GRU和LSTM层则建模序列依赖关系和上下文信息。多头注意力增强了模型对输入相关部分的关注,提高了可解释性。在两个讽刺检测数据集Headlines和Riloff上的实验表明,该模型在Headlines上达到了81.20%的准确率和80.77%的F1分数,在Riloff上达到了79.72%的准确率和61.39%的F1分数,优于传统模型。这些结果验证了我们的混合方法在社交媒体文本讽刺检测中的有效性。

英文摘要:

The pervasive use of the Internet and social media introduces significant challenges to automated sentiment analysis, particularly for sarcastic expressions in user-generated content. Sarcasm conveys negative emotions through ostensibly positive or exaggerated language, complicating its detection within natural language processing tasks. To address this, we propose an innovative sarcasm detection model integrating Convolutional Neural Networks (CNN), Gated Recurrent Units (GRU), Long Short-Term Memory (LSTM), and Multi-Head Attention mechanisms. The CNN component captures local n-gram features, while GRU and LSTM layers model sequential dependencies and contextual information. Multi-Head Attention enhances the model's focus on relevant parts of the input, improving interpretability. Experiments on two sarcasm detection datasets, Headlines and Riloff, demonstrate that the model achieves an accuracy of 81.20% and an F1 score of 80.77% on Headlines, and an accuracy of 79.72% with an F1 score of 61.39% on Riloff, outperforming traditional models. These results validate the effectiveness of our hybrid approach for sarcasm detection in social media texts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑