首页 | 本学科首页   官方微博 | 高级检索  
     

硬约束限制的情感文本生成方法研究
引用本文:龚振凯,李弼程.硬约束限制的情感文本生成方法研究[J].计算机应用研究,2023,40(6):1648-1652.
作者姓名:龚振凯  李弼程
作者单位:华侨大学,华侨大学
基金项目:装备预研教育部联合基金
摘    要:预训练语言模型在情感文本的生成任务中取得了良好效果,但现有情感文本生成方法多使用软约束的方式控制文本整体的情感属性,缺乏单词和短语级别的硬性控制。为解决以上问题,提出硬约束限制下的情感文本生成方法。首先使用方面情感分析技术提取句子的方面词、情感词并判断情感极性;之后,选择目标情感的方面词和情感词作为预训练语言模型的硬约束输入来重建完整句子,其中,设计了一种新的单词权重计算方法,旨在使模型优先生成重要单词。实验结果表明,该方法生成的句子不仅具有方面级情感,在文本质量和多样性的评价指标上也有显著提高。

关 键 词:文本生成  预训练语言模型  硬约束限制  方面级情感
收稿时间:2022/11/10 0:00:00
修稿时间:2023/1/16 0:00:00

Affective text generation with hard constraints
GONG Zhenkai and LI Bicheng.Affective text generation with hard constraints[J].Application Research of Computers,2023,40(6):1648-1652.
Authors:GONG Zhenkai and LI Bicheng
Affiliation:Huaqiao University,
Abstract:Pre-trained language models have achieved good results in the task of sentiment text generation, but existing sentiment text generation methods mostly use soft constraints to control the sentiment attributes of the text as a whole and lack hard control at the word and phrase level. To solve the above problems, this paper proposed sentiment text generation methods under hard constraints. Firstly, it extracted aspect and sentiment words of the sentence and judged sentiment polarity using aspect sentiment analysis techniques. After that, it selected the aspect and sentiment words of the target sentiment as hard-constrained inputs to the pre-trained language model to reconstruct the complete sentence, in which designed a new word weight calculation method, aiming to make the model generate important words in priority. The experimental results show that the sentences generated by this method not only have aspect-level sentiment, but also have significant improvement in the evaluation indexes of text quality and diversity.
Keywords:text generation  pre-trained language model  hard-constrained  aspect-based sentiment
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号