
# ParaNMTDetox: Detoxification with Parallel Data (English)

This repository contains information about filtered [ParaNMT](https://aclanthology.org/P18-1042/) dataset for text detoxification task. Here, we have paraphrasing pairs where one text is toxic and another is non-toxic. Toxicity levels were defined by English toxicity [classifier](https://huggingface.co/s-nlp/roberta_toxicity_classifier).

The original paper ["ParaDetox: Detoxification with Parallel Data"](https://aclanthology.org/2022.acl-long.469/) with SOTA text detoxification was presented at ACL 2022 main conference.

## ParaNMTDetox Filtering Pipeline

The ParaNMT filtering for text detoxiifcation was done by adapting [ParaDetox](https://huggingface.co/datasets/s-nlp/paradetox) Dataset collection [Yandex.Toloka](https://toloka.yandex.com/) crowdsource platform. The filtering was done in three steps:
* *Task 1:* **Content Preservation Check**:  We show users the generated paraphrases along with their original variants and ask them to indicate if they have close meanings.
* *Task 2:* **Toxicity Check**: Finally, we check if the workers succeeded in removing toxicity.

## Citation

```
@inproceedings{logacheva-etal-2022-paradetox,
    title = "{P}ara{D}etox: Detoxification with Parallel Data",
    author = "Logacheva, Varvara  and
      Dementieva, Daryna  and
      Ustyantsev, Sergey  and
      Moskovskiy, Daniil  and
      Dale, David  and
      Krotova, Irina  and
      Semenov, Nikita  and
      Panchenko, Alexander",
    booktitle = "Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = may,
    year = "2022",
    address = "Dublin, Ireland",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2022.acl-long.469",
    pages = "6804--6818",
    abstract = "We present a novel pipeline for the collection of parallel data for the detoxification task. We collect non-toxic paraphrases for over 10,000 English toxic sentences. We also show that this pipeline can be used to distill a large existing corpus of paraphrases to get toxic-neutral sentence pairs. We release two parallel corpora which can be used for the training of detoxification models. To the best of our knowledge, these are the first parallel datasets for this task.We describe our pipeline in detail to make it fast to set up for a new language or domain, thus contributing to faster and easier development of new parallel resources.We train several detoxification models on the collected data and compare them with several baselines and state-of-the-art unsupervised approaches. We conduct both automatic and manual evaluations. All models trained on parallel data outperform the state-of-the-art unsupervised models by a large margin. This suggests that our novel datasets can boost the performance of detoxification systems.",
}
```

## Contacts

If you find some issue, do not hesitate to add it to [Github Issues](https://github.com/skoltech-nlp/paradetox/issues).

For any questions, please contact: Daryna Dementieva (dardem96@gmail.com)
task_categories:text-generation language:en license:openrail++ region:us
{"language": ["en"], "license": "openrail++", "task_categories": ["text-generation"]}
TAGS
#task_categories-text-generation #language-English #license-openrail++ #region-us 


# ParaNMTDetox: Detoxification with Parallel Data (English)

This repository contains information about filtered ParaNMT dataset for text detoxification task. Here, we have paraphrasing pairs where one text is toxic and another is non-toxic. Toxicity levels were defined by English toxicity classifier.

The original paper "ParaDetox: Detoxification with Parallel Data" with SOTA text detoxification was presented at ACL 2022 main conference.

## ParaNMTDetox Filtering Pipeline

The ParaNMT filtering for text detoxiifcation was done by adapting ParaDetox Dataset collection Yandex.Toloka crowdsource platform. The filtering was done in three steps:
* *Task 1:* Content Preservation Check:  We show users the generated paraphrases along with their original variants and ask them to indicate if they have close meanings.
* *Task 2:* Toxicity Check: Finally, we check if the workers succeeded in removing toxicity.

## Contacts

If you find some issue, do not hesitate to add it to Github Issues.

For any questions, please contact: Daryna Dementieva (dardem96@URL)
# ParaNMTDetox: Detoxification with Parallel Data (English)

This repository contains information about filtered ParaNMT dataset for text detoxification task. Here, we have paraphrasing pairs where one text is toxic and another is non-toxic. Toxicity levels were defined by English toxicity classifier.

The original paper "ParaDetox: Detoxification with Parallel Data" with SOTA text detoxification was presented at ACL 2022 main conference. ## ParaNMTDetox Filtering Pipeline

The ParaNMT filtering for text detoxiifcation was done by adapting ParaDetox Dataset collection Yandex.Toloka crowdsource platform. The filtering was done in three steps:
* *Task 1:* Content Preservation Check:  We show users the generated paraphrases along with their original variants and ask them to indicate if they have close meanings.
* *Task 2:* Toxicity Check: Finally, we check if the workers succeeded in removing toxicity. ## Contacts

If you find some issue, do not hesitate to add it to Github Issues.

For any questions, please contact: Daryna Dementieva (dardem96@URL)
TAGS
#task_categories-text-generation #language-English #license-openrail++ #region-us 
 # ParaNMTDetox: Detoxification with Parallel Data (English)

This repository contains information about filtered ParaNMT dataset for text detoxification task. Here, we have paraphrasing pairs where one text is toxic and another is non-toxic. Toxicity levels were defined by English toxicity classifier.

The original paper "ParaDetox: Detoxification with Parallel Data" with SOTA text detoxification was presented at ACL 2022 main conference. ## ParaNMTDetox Filtering Pipeline

The ParaNMT filtering for text detoxiifcation was done by adapting ParaDetox Dataset collection Yandex.Toloka crowdsource platform. The filtering was done in three steps:
* *Task 1:* Content Preservation Check:  We show users the generated paraphrases along with their original variants and ask them to indicate if they have close meanings.
* *Task 2:* Toxicity Check: Finally, we check if the workers succeeded in removing toxicity. ## Contacts

If you find some issue, do not hesitate to add it to Github Issues.

For any questions, please contact: Daryna Dementieva (dardem96@URL)
passage: TAGS
#task_categories-text-generation #language-English #license-openrail++ #region-us 
# ParaNMTDetox: Detoxification with Parallel Data (English)

This repository contains information about filtered ParaNMT dataset for text detoxification task. Here, we have paraphrasing pairs where one text is toxic and another is non-toxic. Toxicity levels were defined by English toxicity classifier.

The original paper "ParaDetox: Detoxification with Parallel Data" with SOTA text detoxification was presented at ACL 2022 main conference.## ParaNMTDetox Filtering Pipeline

The ParaNMT filtering for text detoxiifcation was done by adapting ParaDetox Dataset collection Yandex.Toloka crowdsource platform. The filtering was done in three steps:
* *Task 1:* Content Preservation Check:  We show users the generated paraphrases along with their original variants and ask them to indicate if they have close meanings.
* *Task 2:* Toxicity Check: Finally, we check if the workers succeeded in removing toxicity.## Contacts

If you find some issue, do not hesitate to add it to Github Issues.

For any questions, please contact: Daryna Dementieva (dardem96@URL)