Downloads · 30 days
11
2% of all-time downloads
Alekla0126/PhilBERT
PhilBERT is a text classification model from Alekla0126. Use it when you need a label for a piece of text. It is set up for transformers.
PhilBERT is a fine-tuned DistilBERT model optimized for detecting phishing threats across multiple communication channels, including emails, SMS, URLs, and websites. It is trained on a diverse dataset sourced from Kag…
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
673
Public
Parameters
67M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 70%
From the Hugging Face model README
PhilBERT is a fine-tuned DistilBERT model optimized for detecting phishing threats across multiple communication channels, including emails, SMS, URLs, and websites. It is trained on a diverse dataset sourced from Kaggle, Mendeley, Phishing.Database, and Bancolombia, ensuring high adaptability and real-world applicability.
PhilBERT leverages DistilBERT, a distilled version of BERT, maintaining the same architecture but with 40% fewer parameters, making it lightweight while preserving high accuracy. The final model includes:
Before fine-tuning, the dataset underwent extensive preprocessing to ensure balance and quality:
PhilBERT was fine-tuned on multi-modal phishing datasets using transfer learning, achieving:
| Metric | Value |
|---|---|
| Accuracy | 88.77% |
| Precision | 85.22% |
| Recall | 93.81% |
| F1-Score | 89.31% |
| Evaluation Runtime | 130.46s |
| Samples/sec | 58.701 |
pip install transformers torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "your_username/PhilBERT"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "Click this link to update your bank details: http://fakebank.com"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
print(f"Phishing probability: {predictions[0][1].item():.4f}")
This model is proprietary and protected under a custom license. Please refer to the LICENSE file for terms of use.