Phishing & Content Safety
Collection
Layered phishing detection (URL and message content, EN/ZH) and harmful-content categorization. โข 7 items โข Updated
How to use songhieng/phishing-roberta-category with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="songhieng/phishing-roberta-category") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("songhieng/phishing-roberta-category")
model = AutoModelForSequenceClassification.from_pretrained("songhieng/phishing-roberta-category", device_map="auto")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 |
| 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 |
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"))
Other / Not Listed score as a signal.Built by Songhieng Van. Questions and feedback are welcome in the Community tab.
@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}}
}
Base model
FacebookAI/roberta-base