Downloads · 30 days
9
17% of all-time downloads
ENTUM-AI/roberta-toxic-classifier-en
roberta-toxic-classifier-en is a text classification model from ENTUM-AI. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This model is a fine-tuned version of roberta-base trained to classify text into two categories: Safe and Toxic (Hate Speech). It is optimized for analyzing internet text, comments, and short social media posts.
Downloads · 30 days
9
17% of all-time downloads
All-time downloads
54
Public
Parameters
125M
499 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of roberta-base trained to classify text into two categories: Safe and Toxic (Hate Speech). It is optimized for analyzing internet text, comments, and short social media posts.
The intended use of this model is to automatically moderate user-generated content, flag potentially harmful text, and maintain safe text environments in digital platforms.
Toxic or Safe / Non-Toxic) with confidence scores.The model was highly optimized using the canonical tweet_eval (Hate subset) dataset, which contains carefully curated text samples tagged for toxicity.
The model was evaluated using robust statistical offline evaluation. The final performance metrics obtained on the evaluation set are:
0.79700.79550.79540.80170.9114The model was trained under the following conditions:
roberta-baseYou can use this model directly with the Hugging Face transformers library pipeline:
from transformers import pipeline
# Load the toxicity classifier
classifier = pipeline("text-classification", model="your-username/roberta-toxic-classifier-en")
text = "I completely disagree with your point of view."
result = classifier(text)
print(result)
# Output: [{'label': 'Safe / Non-Toxic', 'score': 0.98...}]