Downloads · 30 days
9
24% of all-time downloads
udbhav89/domain-specific-modern-bert-spam-classifier
domain-specific-modern-bert-spam-classifier is a text classification model from udbhav89. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned ModernBERT model for spam classification with domain-specific prefixes.
Downloads · 30 days
9
24% of all-time downloads
All-time downloads
37
Public
Parameters
150M
598 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors598 MB · 99%
From the Hugging Face model README
Fine-tuned ModernBERT model for spam classification with domain-specific prefixes.
This model expects text with a domain prefix:
[crypto] for crypto/blockchain related content[rideshare] for rideshare/transportation related contentExample:
from transformers import pipeline
classifier = pipeline("text-classification", model="udbhav89/domain-specific-modern-bert-spam-classifier")
# Crypto domain
result = classifier("[crypto] FREE BITCOIN! Send 0.1 ETH to get 10 BTC back!")
# Returns: [{'label': 'spam', 'score': 0.97}]
# Rideshare domain
result = classifier("[rideshare] Great ride, thanks driver!")
# Returns: [{'label': 'not_spam', 'score': 0.99}]
not_spam (0): Legitimate messagespam (1): Spam messageanswerdotai/ModernBERT-base