google/jigsaw_unintended_bias
Updated โข 587 โข 11
Fine-tuned distilbert-base-uncased that predicts whether an English comment is toxic. Built for the capstone project
Trust in Automated Moderation of Toxic Comments (ECE 4424 / CS 4824). Code: https://github.com/martinagg7/ML-ToxicModeration
train.csv, 1.8 M news comments), 80/10/10 split grouped by article.| Model | Precision | Recall | F1 | ROC AUC | PR-AUC |
|---|---|---|---|---|---|
| Word blocklist (LDNOOBW) | 0.27 | 0.10 | 0.15 | 0.54 | 0.10 |
| TF-IDF + logistic regression | 0.73 | 0.53 | 0.61 | 0.93 | 0.69 |
| This model | 0.80 | 0.58 | 0.67 | 0.96 | 0.78 |
Not intended for fully automatic moderation: uncertain predictions (probability 0.4โ0.6) should go to human review.
from transformers import pipeline
clf = pipeline("text-classification", model="Martinagg/toxic-distilbert")
clf("You are an idiot")
Base model
distilbert/distilbert-base-uncased