Downloads · 30 days
11
13% of all-time downloads
Perth0603/phishing-email-mobilebert
phishing-email-mobilebert is a text classification model from Perth0603. 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 MobileBERT for binary phishing-vs-legitimate email classification.
Downloads · 30 days
11
13% of all-time downloads
All-time downloads
88
Public
Parameters
24.6M
98.5 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors98.5 MB · 99%
From the Hugging Face model README
This model is a fine-tuned MobileBERT for binary phishing-vs-legitimate email classification.
Python (transformers):
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tok = AutoTokenizer.from_pretrained("Perth0603/phishing-email-mobilebert")
mdl = AutoModelForSequenceClassification.from_pretrained("Perth0603/phishing-email-mobilebert")
inputs = tok(["Win an iPhone! Click here"], return_tensors="pt")
with torch.no_grad():
pred = mdl(**inputs).logits.softmax(-1)
print(pred)
HF Inference API (public models only):
curl -X POST https://api-inference.huggingface.co/models/Perth0603/phishing-email-mobilebert -H "Content-Type: application/json" -d '{"inputs": "Win an iPhone! Click here"}'