Using this project, you can generate alternatives which do not contain the hateful content of the input text!
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.
This file registers a preprocessing stage to the inference pipeline of the input prompts, which automatically adds the task definition before the prompt.