zefang-liu/phishing-email-dataset
Viewer โข Updated โข 18.7k โข 1.96k โข 39
How to use Aaqib099/distilbert-phishing-detection with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Aaqib099/distilbert-phishing-detection") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Aaqib099/distilbert-phishing-detection")
model = AutoModelForSequenceClassification.from_pretrained("Aaqib099/distilbert-phishing-detection", device_map="auto")This model detects phishing emails using a fine-tuned DistilBERT transformer model.
distilbert-base-uncasedDataset: Phishing Email Dataset
After cleaning, 17,537 email samples were used.
| Metric | Score |
|---|---|
| Accuracy | 98.86% |
| Precision | 98.33% |
| Recall | 98.63% |
| F1-score | 98.48% |
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="Aaqib099/distilbert-phishing-detection"
)
result = classifier(
"Urgent! Verify your account by clicking this link."
)
print(result)
Fine-tuning and comparison of encoder-only and decoder-only transformer architectures for phishing detection.