Skip to content

Beny-Maleki/Detoxifying-Text-Paradetox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Detoxifying-Text-Paradetox

Using this project, you can generate alternatives which do not contain the hateful content of the input text!

text_detoxification.ipynb

This file consists of the code blocks that train a t5-small using instruction-finetuning for Hate Speech Modification. Instances of modification are taken from ParaDetox dataset.

inference_preprocess_pipeline.ipynb

This file registers a preprocessing stage to the inference pipeline of the input prompts, which automatically adds the task definition before the prompt.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published