How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="tomh/toxigen_hatebert")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("tomh/toxigen_hatebert")
model = AutoModelForSequenceClassification.from_pretrained("tomh/toxigen_hatebert")
Quick Links

Thomas Hartvigsen, Saadia Gabriel, Hamid Palangi, Maarten Sap, Dipankar Ray, Ece Kamar.

This model comes from the paper ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection and can be used to detect implicit hate speech.

Please visit the Github Repository for the training dataset and further details.

@inproceedings{hartvigsen2022toxigen,
    title = "{T}oxi{G}en: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection",
    author = "Hartvigsen, Thomas and Gabriel, Saadia and Palangi, Hamid and Sap, Maarten and Ray, Dipankar and Kamar, Ece",
    booktitle = "Proceedings of the 60th Annual Meeting of the Association of Computational Linguistics",
    year = "2022"
}
Downloads last month
1,105
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for tomh/toxigen_hatebert

Finetunes
1 model

Space using tomh/toxigen_hatebert 1

Paper for tomh/toxigen_hatebert