Sentiment transfer aims at revising the input text to satisfy a given sentiment polarity while retaining the original semantic content. The nucleus of sentiment transfer lies in precisely separating the sentiment information from the content information. Existing explicit approaches generally identify and mask sentiment tokens simply based on prior linguistic knowledge and manually-defined rules, leading to low generality and undesirable transfer performance. In this paper, we view the positions to be masked as the learnable parameters, and further propose a novel AM-ST model to learn adaptive task-relevant masks based on the attention mechanism. Moreover, a sentiment-aware masked language model is further proposed to fill in the blanks in the masked positions by incorporating both context and sentiment polarity to capture the multi-grained semantics comprehensively. AM-ST is thoroughly evaluated on two popular datasets, and the experimental results demonstrate the superiority of our proposal.
翻译:感官传输的目的是修改输入文本,以满足特定情绪极极性,同时保留原始语义内容。情绪传输的核心在于将情绪信息与内容信息完全分离。现有的明确方法一般地识别并掩盖仅仅基于先前语言知识和手动界定的规则的情绪象征,导致低一般性和不可取的转移性能。在本文中,我们认为这些位置被掩盖为可学习的参数,并进一步提出一个新的AM-ST模式,以学习基于关注机制的适应性任务相关面具。此外,还进一步提议了一种感知隐蔽语言模式,将背景和情绪对立性纳入全面捕捉多发性语义。对AM-ST进行了彻底评估,实验结果显示了我们提案的优势。