首页|期刊导航|重庆工商大学学报(自然科学版)|一种基于提示学习的话题讽刺识别方法

一种基于提示学习的话题讽刺识别方法OA

A Topic-Oriented Sarcasm Detection Method Based on Prompt Learning

中文摘要英文摘要

目的 面向话题的讽刺识别旨在通过引入话题,将话题视作对象来判断评论是否为讽刺表达,但是现有基于提示学习的方法存在模板依赖人工构造的问题,存在复杂性与不稳定性.方法 针对此问题,根据提示学习的模板工程与映射器工程提出了新的设计方法,将连续与离散相结合的混合模板与映射器进行交互,通过对模板进行预训练减少人工选取模板引起的复杂性与不稳定性问题,再将设计好的模板与原始输入拼接输入到预训练模型BERT-base-Chinese中对标记的数据进行分类;在此基础上,提出面向话题讽刺识别任务的模型MTPrompt.结果 该模型在ToScarcasm数据集上的实验表明,在全批量训练数据场景下,与现有手工模板与手工映射器交互模型TOSPrompt相比较,准确率提升了2.78%、精确率提升了1.89%、召回率提升了5.26%、F1值提升了3.54%,同时在小批量训练数据场景下,准确率与F1值均高于其他基线模型.结论 在话题讽刺识别应用场景中,混合模板的方法可以有效优化人工构造模板方法的复杂性与不稳定,并且达到更佳的识别性能.

Objective Topic-oriented sarcasm detection aims to judge whether a comment is a sarcastic expression by introducing topics and regarding them as objects.Nevertheless,the existing methods based on prompt learning have the problem of relying on manually constructed templates,which brings complexity and instability.Methods To tackle this problem,a novel design approach was put forward based on template engineering and mapper engineering of prompt learning.A hybrid template integrating continuous and discrete elements interacted with the mapper.By pre-training the template,the complexity and instability resulting from manual template selection were mitigated.Subsequently,the well-designed template was concatenated with the original input and fed into the pre-trained model BERT-base-Chinese for classifying the labeled data.On this basis,a model named MTPrompt for topic-oriented sarcasm detection was proposed.Results Experiments on the ToScarcasm dataset show that,under the scenario of full-batch training data,when compared with the existing model TOSPrompt that involves the interaction between manual templates and manual mappers,the proposed model,MTPrompt,achieves significant improvements.Specifically,its accuracy was increased by 2.78%,precision by 1.89%,recall by 5.26%,and the F,score by 3.54%.Meanwhile,under the scenario of small-batch training data,both the accuracy and F,score of this model were higher than those of other baseline models.Conclusion In the application scenario of topic-oriented sarcasm detection,the hybrid template method can effectively alleviate the complexity and instability of manually constructed templates and attain better detection performance.

胡松华;唐家伟;马汝虎

合肥大学人工智能与大数据学院,合肥 230601合肥大学人工智能与大数据学院,合肥 230601合肥大学人工智能与大数据学院,合肥 230601

信息技术与安全科学

自然语言处理提示学习面向话题的讽刺识别情感分析

natural language processingprompt learningtopic-oriented sarcasm detectionsentiment analysis

《重庆工商大学学报(自然科学版)》 2026 (3)

108-115,8

2021年安徽省高校自然科学重点研究项目资助(KJ2021A0990)合肥学院教学研究项目资助(2021HFUHHKC18,2022HFUJYZD04).

10.16055/j.issn.1672-058X.2026.0003.013

评论