Methods for Detoxification of Texts for the Russian Language

Daryna Dementieva, Daniil Moskovskiy, Varvara Logacheva, David Dale, Olga Kozlova +2 more
5/19/2021
cs.CLcs.LG

Official code: ai-forever/ru-gpts (2,089 stars, Apache-2.0, last commit 2022-12-12). 1 more implementation below.

Abstract

We introduce the first study of automatic detoxification of Russian texts to combat offensive language. Such a kind of textual style transfer can be used, for instance, for processing toxic content in social media. While much work has been done for the English language in this field, it has never been solved for the Russian language yet. We test two types of models - unsupervised approach based on BERT architecture that performs local corrections and supervised approach based on pretrained language GPT-2 model - and compare them with several baselines. In addition, we describe evaluation setup providing training datasets and metrics for automatic evaluation. The results show that the tested approaches can be successfully used for detoxification, although there is room for improvement.

View on arXivView PDF

Code Implementations(2)

ai-forever/ru-gptsOfficial100%
Apache-2.0

Russian GPT3 models.

2,089433Shell, PythonOct 13, 20203 years agoApache-2.0
deep-learninggpt3language-modelrussianrussian-language+1 more
s-nlp/rudetoxifierOfficial100%
MIT

Code and data of "Methods for Detoxification of Texts for the Russian Language" paper

506Python, Jupyter NotebookMay 13, 20211 years agoMIT
nlprussian-languagestyle-transfer

Cite this paper

@article{dementieva2021methods,
  title  = {Methods for Detoxification of Texts for the Russian Language},
  author = {Daryna Dementieva and Daniil Moskovskiy and Varvara Logacheva and David Dale and Olga Kozlova and Nikita Semenov and Alexander Panchenko},
  year   = {2021},
  eprint = {2105.09052},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.09052}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.09052.svg)](https://codeofpaper.com/paper/2105.09052)

Discussion