Dataset Preview
Go to dataset viewer
en_neutral_comment (string)en_toxic_comment (string)
"he was brave too!"
"he had steel balls too !"
"It would have been good if he went to api. He would fit in."
"dude should have been taken to api , he would be right at home with all the other knuckleheads there"
"I'm not gonna sell the picture, i just want to contribute to the article."
"im not gonna sell the fucking picture , i just want to contribute to the fucking article ."
"the news that is being created by cnn and other news agencies is outrageous."
"the garbage that is being created by cnn and other news agencies is outrageous ."
"The reason they don't exist is because neither lies like trump"
"the reason they dont exist is because neither is a pathological liar like trump ."
"I think they beat each other"
"i hope they beat each other silly ."
"no good people that we are and we are unrepentant about it"
"no good bastards that we are and we are unrepentant about it ."
"kindly stop the coverage"
"stop the coverage and let em rot ."
"please delete the page"
"delete the page and shut up"
"It's not wise to catcall frankly."
"honestly catcalling really sounds stupid ."
"Every time you flag a post you make a point"
"every time you flag the post like a coward you make my point ."
"Only to replaced by another consensus."
"only to replaced by another braindead consensus ."
"This is a free country."
"this is a free country that protectsamendment rights from little commies like you ."
"more proof that liberalism might be a problem"
"more proof that liberalism might be a mental disorder ."
"it wouldn't be intelligent not to."
"it would be stupid not to ."
"I was just feeding him back his own words."
"i was just feeding him back his own , hypocritically selfrighteous words ."
"The police have no time for this."
"the police dont have time for this crap ."
"i want you all to myself , honey ."
"i want you all to myself , you sexy beast ."
"If any of the cry babies who dont respect democracy come , it will be the bad drain."
"if any of the cry babies who dont respect democracy come , it will be the stupid drain"
"The dems cheered when a sp was appointed."
"the stupid dems cheered when a sp was appointed ."
"Some people put that to overshadow the war."
"some idiots put that to overshadow the war ."
"immoral people who should be driven out of office asap ."
"disgusting , immoral people , rightwing extremists , who should be driven out of office asap ."
"Hello , you are so beautiful ! ."
"hello , you sexy little lovehole ! ."
"neither will anything change from this."
"neither will anything change from this crap ."
"Im reading the posts from the right wing suspects"
"im here reading the usual garbage posts from the usual right wing suspects ."
"Time to attend to this issue."
"time to pull this rubbish ."
"You have neither the honesty nor the maturity to admit that you said something wrong."
"you have neither the honesty nor the maturity to admit that you said something stupid ."
"The same government can't even manage a club properly."
"the same government that dont know its elbow from their ass , that cant even manage a shebeen properly ."
"what a bad excuse for a reason."
"what a chicken crap excuse for a reason ."
"the election of van der bellen was a victory for being unknowledgeable and cultural suicide ."
"the election of van der bellen was a victory for stupidity and cultural suicide ."
"The president Trump kept James Comey on the straight and narrow."
"crazy like a fox the wily president trump kept slimy james comey on the straight and narrow ."
"Generous separation is not good for me."
"generous seperation packages my ass !"
"delete the page"
"delete the page and shut up"
"Clinton lost twice."
"clinton is a loser , twice ."
"Obama has not been entirely successful, and he doesn't look like a winner."
"obama has been a total failure , and now looks like a sore loser ."
"if you arent frightened i think you are making mistake"
"if you arent frightened i think you are an idiot"
"He was back home and should have stayed there."
"damn , he was back home and should have stayed there ."
"You tried to make an irrelevant point by uaing a really unintelligent generalization."
"you tried make an irrelevant point by using a really dumb generalization ."
"voting for her if the examiner and mitch the establishment dont like her"
"voting for her if the examiner and mitch the establishment bitch dont like her"
"Jeez, our voters vote for some unsuitable people."
"jeez , our voters vote in some stupid people ."
"I don't remember any unsuitable moves"
"i dont remember any stupid moves ."
"The news that is being created by cnn and other news agencies is outrageous."
"the garbage that is being created by cnn and other news agencies is outrageous ."
"Government destroys the life out of an economy."
"government sucks the life out of an economy ."
"Some people no longer believe in national sovereignty"
"some idiots no longer believe in national sovereignty ."
"He travelled to Amarillo, from Alaska, and procedeed to make bad choices."
"he traveled to amarillo , from alaska , and proceeded to make an arse of himself ."
"How many people does it take to change light bulb?"
"how many niggers does it take to change a light bulb ?"
"these exam retakes and try until you pass ideas mean any unsuitable can get credentials for any profession anytime ."
"these exam retakes and try until you pass ideas mean any idiot can get credentials for any profession anytime ."
"the message is pbot doesnt care about you ."
"the message is pbot doesnt give a shit about you ."
"if he was such a bad driver and got into bad situations , i would not bailed him out ."
"if he was such a bad driver and got into stupid situations , i would not bailed him out ."
"he is working with russia to take down america and you didn't notice."
"he is working with russia to take down america and clowns like you are too clueless to notice ."
"trump has been firing bad people,and you still haven't figured out he is da man."
"trump has been kickin ass forths , and you still havent figured out he is da man ."
"it is truly incredible how you talk from both sides of your mouth."
"it is truly incredible how hypocritical you are ."
"Some things cannot be undone."
"some stinks cannot be unstunk ."
"those young mothers driving their children to daycare through the snow drifts."
"damn those young mothers driving their children to daycare through the snow drifts ."
"mckenna social justice warrior but big spender on expensive government vehicles cut !"
"mckenna social justice warrior but big spender hypocrite on expensive government vehicles cut ! ."
"It's senseless, you know"
"its a crock of shit , and you know it ."
"Wikipedia review and tell the world why you not wrong"
"wikipedia review and tell the world why you not a grand dickhead"
"We arecountry of not talented people."
"we arecountry of losers and abusers ."
"good , dont let the door hit you as you leave this conversation mr"
"good , dont let the door hit you in the butt as you leave this conversation mr ."
"our court system is not good"
"our court system is so screwed and if he is caught he will only get out again ."
"Will never willing watch that ever again."
"will never willingly watch that crap ever again ."
"she is looking like bad"
"she is looking like shite ."
"Johnson county is not good."
"btw jonhson county is a real shithole in case you were wondering ."
"only churches care it seems"
"only churches give a crap it seems ."
"may karma be with this unlike person"
"may karma be with this scumbag ."
"hey, you are not brave."
"hey , you are a chicken shit coward ."
"Why are canadians so taken up woth hockey?"
"why are canadians so taken up with hockey when their teams are all losers ?"
"Canada would be very glad to be Mexicos soul mate if Mexico would improve"
"canada would be very glad to be mexicos soul mate if mexico would stop being such a mess ."
"However she is not talking like trump"
"however , she is not out saying stupid things like trump on a daily basis ."
"keep crying me a river , ya boy ."
"keep crying me a river , bitch boy ."
"Oh , one more thing, when it comes to prehistoric life, you guys are not so smart."
"oh , one more thing , when it comes to prehistoric life , you guys are idiots !"
"since only naive people would take political cues from Facebook, i can see why the democrat party is alarmed !"
"since only idiots would take politcal cues from facebook , i can see why the democrat party is alarmed !"
"The crisis of opiod deaths is a direct result of the corrupt policy of prohibition."
"the crisis of opioid deaths is a direct result of the stupid and corrupt policy of prohibition ."
"This is a free country that protects amendments rights from communists like you."
"this is a free country that protectsamendment rights from little commies like you ."
"Micronesians are being ill treated."
"micronesians are being treated like cockroach families ? ."
"He has the right to speak , no matter how vile his message ."
"this garbage has a right to speak , no matter how vile his message ."
"They are from the same gang"
"theyre from the same dung heap ."
"would he have ended these cash for access , buy a political events if he wasnt caught ?"
"would he have ended these cash for access , buy a political whore events if he wasnt caught ? ."
"Feminism is not a good movement"
"until feminists take on islam and how it treats women , the entire movement is a total farce !"
"countless wrong things has been spotted by me ."
"countless crap has been spotted by me ."
"Dear alaexis, this kid does not understand."
"dear alaexis , this kid is an asshole , does not understand anything , an idiot ."
"this is all coming out of our pockets , and i am not confident !"
"this is all coming out of our darned pockets , and i am not confident !"
"Your remark is ignorant."
"outsideryou are an idiot to make such an ignorant remark ."
"I didn't vote for him"
"i didnt vote for the liar"
"i wouldnt spend dollar one in that place."
"i wouldnt spend dollar one in that racist hellhole ."
"do they think we are really unsuitable or just too lazy to stop them ? ."
"do they think we are really stupid or just too lazy to stop them ? ."
"Thats not a policy"
"thats not a policy , thats nothing but bull pucky for the ignorant masses ."
"You don't have to hurt their families further by commenting on ignorant decisions."
"you dont need to be hurting their families even more by posting ignorant judgemental comments ."
"Better than anyone currently quarterbacking this show."
"better than any of the bums currently quarterbacking this sht show ."
"the free world doesnt need your ignorance ."
"the free world doesnt need your stupidity ."
"I stand by my statement that planned parenthood and the unallowed people were behind the marches."
"i stand by my ridiculous statement that planned parenthood and the illegal alien apologists were behind the marches ."
"It's fake news"
"sore losers , cry babiesfake news !"
"Now to digest it for you the above sentence(quoted)is not right"
"now to digest it for you the above sentence ( quoted ) is downright stupid ."
"Someone put that to overshadow the war."
"some idiots put that to overshadow the war ."
"that's all you can come up with?"
"thats all the garbage you can come up with to bash trump ?"
"Can you see how funny these cases are getting?"
"can you see how ridiculous these cases are becoming ?"
"The ship are sailing full speed ahead"
"the ship of fools are sailing full speed ahead ."
"did you read the article at all , or not?"
"did you read the article at all , or are you just another one of the gupta stooges ?"
"wikipedia review and tell the world why you are not grand"
"wikipedia review and tell the world why you not a grand dickhead"
"maybe you need to chill out some time ."
"maybe your bitchass needs to chill the fuck out some time ."
End of preview (truncated to 100 rows)

ParaDetox: Detoxification with Parallel Data

This repository contains information about Paradetox dataset -- the first parallel corpus for the detoxification task -- as well as models and evaluation methodology for the detoxification of English texts. The original paper "ParaDetox: Detoxification with Parallel Data" was presented at ACL 2022 main conference.

ParaDetox Collection Pipeline

The ParaDetox Dataset collection was done via Yandex.Toloka crowdsource platform. The collection was done in three steps:

  • Task 1: Generation of Paraphrases: The first crowdsourcing task asks users to eliminate toxicity in a given sentence while keeping the content.
  • Task 2: 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 3: Toxicity Check: Finally, we check if the workers succeeded in removing toxicity.

All these steps were done to ensure high quality of the data and make the process of collection automated. For more details please refer to the original paper.

ParaDetox Dataset

As a result, we get paraphrases for 11,939 toxic sentences (on average 1.66 paraphrases per sentence), 19,766 paraphrases total. The whole dataset can be found here. The examples of samples from ParaDetox Dataset:

In addition to all ParaDetox dataset, we also make public samples that were marked by annotators as "cannot rewrite" in Task 1 of crowdsource pipeline.

Detoxification evaluation

The automatic evaluation of the model were produced based on three parameters:

  • style transfer accuracy (STA): percentage of nontoxic outputs identified by a style classifier. We pretrained toxicity classifier on Jigsaw data and put it online in HuggingFace🤗 repo.
  • content preservation (SIM): cosine similarity between the embeddings of the original text and the output computed with the model of Wieting et al. (2019).
  • fluency (FL): percentage of fluent sentences identified by a RoBERTa-based classifier of linguistic acceptability trained on the CoLA dataset.

All code used for our experiments to evluate different detoxifcation models can be run via Colab notebook Open In Colab

Detoxification model

New SOTA for detoxification task -- BART (base) model trained on ParaDetox dataset -- we released online in HuggingFace🤗 repository here.

You can also check out our demo and telegram bot.

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.

For any questions, please contact: Daryna Dementieva (daryna.dementieva@skoltech.ru)

Edit dataset card
Evaluate models HF Leaderboard