重庆工商大学学报(自然科学版)2026,Vol.43Issue(3):108-115,8.DOI:10.16055/j.issn.1672-058X.2026.0003.013
一种基于提示学习的话题讽刺识别方法
A Topic-Oriented Sarcasm Detection Method Based on Prompt Learning
摘要
Abstract
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.关键词
自然语言处理/提示学习/面向话题的讽刺识别/情感分析Key words
natural language processing/prompt learning/topic-oriented sarcasm detection/sentiment analysis分类
信息技术与安全科学引用本文复制引用
胡松华,唐家伟,马汝虎..一种基于提示学习的话题讽刺识别方法[J].重庆工商大学学报(自然科学版),2026,43(3):108-115,8.基金项目
2021年安徽省高校自然科学重点研究项目资助(KJ2021A0990) (KJ2021A0990)
合肥学院教学研究项目资助(2021HFUHHKC18,2022HFUJYZD04). (2021HFUHHKC18,2022HFUJYZD04)