Harmful Content Category Classifier (RoBERTa)
A 9-class content-risk classifier for trust-and-safety pipelines. Given a message or post, it predicts which category of harmful content it belongs to. Use it to route flagged content to the right review queue or policy.
| Base model | FacebookAI/roberta-base (~125M parameters) |
| Task | Multi-class text classification (single label) |
| Language | English |
| Demo | Content Risk Classifier Space |
Labels
| ID | Category |
|---|---|
| 0 | Illegal or Restricted Transactions |
| 1 | Impersonation & Identity Misuse |
| 2 | Misinformation & Disinformation |
| 3 | Online Scams & Phishing |
| 4 | Other / Not Listed |
| 5 | Privacy Violations & Doxxing |
| 6 | Self-Harm or Suicide Encouragement |
| 7 | Spam & Malicious Links |
| 8 | Violent or Graphic Content |
Usage
from transformers import pipeline
clf = pipeline("text-classification", model="songhieng/phishing-roberta-category", top_k=3)
print(clf("Your account will be suspended. Confirm your password here: http://secure-login-update.com"))
Limitations
- The model predicts a category but does not decide whether content is harmful. Run it after a harmful-or-not filter, or use the
Other / Not Listedscore as a signal. - Some categories overlap. For example, "Online Scams & Phishing" and "Spam & Malicious Links" can both apply. Review the top-k predictions, not only the top-1.
- Self-harm content needs human review and appropriate escalation. Do not use this model alone for automated decisions on such content.
- Benchmark metrics have not been published yet.
Author
Built by Songhieng Van. Questions and feedback are welcome in the Community tab.
Citation
@misc{van2025phishingrobertacategory,
author = {Van, Songhieng},
title = {Harmful Content Category Classifier (RoBERTa)},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/songhieng/phishing-roberta-category}}
}