Chinese Phishing Content Detector (RoBERTa)
Classifies Chinese-language messages (SMS, email, chat) as phishing/fraud or legitimate. It is the Chinese counterpart of roberta-phishing-content-detector-6.0.
| Base model | FacebookAI/roberta-base (~125M parameters) |
| Task | Binary text classification |
| Labels | Legitimate (0), Phishing (1) |
| Language | Chinese |
| Max input | 512 tokens |
| Demo | Chinese Phishing Detector Space |
Usage
from transformers import pipeline
detector = pipeline("text-classification", model="songhieng/chn-roberta-phishing-content-detector-1.0")
print(detector("【银行通知】您的账户存在异常,请立即点击链接验证身份:http://bank-verify.cn"))
# [{'label': 'Phishing', 'score': ...}]
Limitations
- The model uses RoBERTa's English byte-level BPE tokenizer. Chinese characters split into several byte tokens each, so long messages hit the 512-token limit sooner (roughly 170–250 characters). Truncate or chunk long inputs.
- The model does not visit links or inspect attachments.
- Benchmark metrics have not been published yet. Validate the model on your own data before using it to block anything automatically.
Author
Built by Songhieng Van. Questions and feedback are welcome in the Community tab.
Citation
@misc{van2025chnrobertaphishingcontentdetector10,
author = {Van, Songhieng},
title = {Chinese Phishing Content Detector (RoBERTa)},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/songhieng/chn-roberta-phishing-content-detector-1.0}}
}