arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.07767cs.CL
收藏

英语和印地语中作为风格迁移的文本去毒化

Text Detoxification as Style Transfer in English and Hindi

Charles University, Faculty of Mathematics and Physics(查理大学数学与物理学院);Panlingua Language Processing LLP(Panlingua语言处理有限责任合伙公司);Insight SFI Centre for Data Analytics, DSI, University of Galway(爱尔兰高威大学Insight SFI数据分析中心)

Sourabrata Mukherjee, Akanksha Bansal, Atul Kr. Ojha, John P. McCrae, Ondřej Dušek

AI总结:

本文研究英语和印地语中的文本去毒化问题,提出知识迁移、多任务学习和删除重构三种方法,并构建人工筛选及印地语平行数据集,在去毒的同时保留内容与流畅性。

摘要:

本文聚焦于文本去毒化,即自动将有毒文本转换为无毒文本。该任务有助于实现更安全、更尊重的在线交流,并可被视为一种文本风格迁移(TST)任务,即在保留内容的同时改变文本风格。我们提出了三种方法:从相似任务进行知识迁移、多任务学习方法,将序列到序列建模与多种毒性分类任务相结合,以及删除与重构方法。为支持我们的研究,我们使用了Dementieva等人(2021)提供的数据集,该数据集包含与有毒文本对应的多个去毒化版本。在实验中,我们通过专家人工标注者筛选出最佳变体,构建了一个每个有毒句子仅与一个合适的去毒化版本配对的数据集。此外,我们还引入了一个小型的印地语平行数据集,与部分英语数据集对齐,适用于评估目的。我们的结果表明,所提方法在有效实现文本去毒化的同时,能够保留实际内容并保持流畅性。

英文摘要:

This paper focuses on text detoxification, i.e., automatically converting toxic text into non-toxic text. This task contributes to safer and more respectful online communication and can be considered a Text Style Transfer (TST) task, where the text style changes while its content is preserved. We present three approaches: knowledge transfer from a similar task, multi-task learning approach, combining sequence-to-sequence modeling with various toxicity classification tasks, and delete and reconstruct approach. To support our research, we utilize a dataset provided by Dementieva et al.(2021), which contains multiple versions of detoxified texts corresponding to toxic texts. In our experiments, we selected the best variants through expert human annotators, creating a dataset where each toxic sentence is paired with a single, appropriate detoxified version. Additionally, we introduced a small Hindi parallel dataset, aligning with a part of the English dataset, suitable for evaluation purposes. Our results demonstrate that our approach effectively balances text detoxication while preserving the actual content and maintaining fluency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑