Unsupervised Sentiment and Style Transfer from Massive Texts

Xianjie Shen, Wei Chen, Shuren Xu
{"title":"Unsupervised Sentiment and Style Transfer from Massive Texts","authors":"Xianjie Shen, Wei Chen, Shuren Xu","doi":"10.1145/3573428.3573464","DOIUrl":null,"url":null,"abstract":"Unsupervised style transfer aims to transfer the intrinsic style of text while preserving its content without parallel datasets. Many sophisticated methods using reinforcement learning and neural networks have been developed to address this problem, however, their performance is not very ideal yet. We observe that given massive unpaired texts, there would exist high-quality sentence pairs that have similar style-independent content but different style words. Inspiring by this observation, in this paper, we propose a simple yet effective method without any neural network. Specifically, we consider both embedding similarity and BLEU score to locate similar sentences of different styles for a pseudo-parallel dataset construction. From this pseudo-parallel dataset, we distill the style words and align them into pairs based on statistical signals. We further refine our pseudo-parallel dataset by ignoring the identified style words during similarity calculation. After the style word pairs converged, we put them together as a lookup table to recognize and replace style words for style transfer. Extensive experiments demonstrate that our method is effective in different style transferring settings, such as sentiment and formality, outperforming state-of-the-art methods.","PeriodicalId":314698,"journal":{"name":"Proceedings of the 2022 6th International Conference on Electronic Information Technology and Computer Engineering","volume":"4 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2022 6th International Conference on Electronic Information Technology and Computer Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3573428.3573464","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Unsupervised style transfer aims to transfer the intrinsic style of text while preserving its content without parallel datasets. Many sophisticated methods using reinforcement learning and neural networks have been developed to address this problem, however, their performance is not very ideal yet. We observe that given massive unpaired texts, there would exist high-quality sentence pairs that have similar style-independent content but different style words. Inspiring by this observation, in this paper, we propose a simple yet effective method without any neural network. Specifically, we consider both embedding similarity and BLEU score to locate similar sentences of different styles for a pseudo-parallel dataset construction. From this pseudo-parallel dataset, we distill the style words and align them into pairs based on statistical signals. We further refine our pseudo-parallel dataset by ignoring the identified style words during similarity calculation. After the style word pairs converged, we put them together as a lookup table to recognize and replace style words for style transfer. Extensive experiments demonstrate that our method is effective in different style transferring settings, such as sentiment and formality, outperforming state-of-the-art methods.
大量文本的无监督情感和风格转移
无监督风格转移旨在转移文本的内在风格,同时在没有并行数据集的情况下保留其内容。许多使用强化学习和神经网络的复杂方法已经被开发出来来解决这个问题,然而,它们的性能还不是很理想。我们观察到,对于大量未配对的文本,会存在具有相似风格独立内容但不同风格词的高质量句子对。受此启发,本文提出了一种简单而有效的方法,无需任何神经网络。具体来说,我们考虑嵌入相似度和BLEU分数来定位不同风格的相似句子,用于伪并行数据集构建。从这个伪并行数据集中,我们提取风格词,并根据统计信号将它们对齐成对。我们通过在相似度计算中忽略已识别的风格词来进一步改进伪并行数据集。在样式词对收敛之后,我们将它们放在一起作为查找表来识别和替换样式词以进行样式转移。大量的实验表明,我们的方法在不同的风格转换环境中是有效的,例如情绪和正式,优于最先进的方法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信