Spam Detection models
Collection
Spam detection models in various languages • 4 items • Updated
This model was created by Tanaos with the Artifex Python library.
This is a spam detection model trained to classify English text as spam or not_spam. It is intended to be used as a first-layer spam filter for email systems, messaging applications or any other text-based communication platform.
The following categories are considered spam:
The main model language is English, but we have spam detection models specialized in other languages as well:
Use this model through the Artifex library:
install Artifex with
pip install artifex
use the model with
from artifex import Artifex
spam_detection = Artifex().spam_detection()
print(spam_detection("You won an IPhone 16! Click here to claim your prize."))
# >>> [{'label': 'spam', 'score': 0.9989}]
distilbert/distilbert-base-multilingual-casedThis model was trained using the Artifex Python library
pip install artifex
by providing the following instructions and generating 10,000 synthetic training samples:
from artifex import Artifex
spam_detection = Artifex().spam_detection()
spam_detection.train(
spam_content=[
"Unsolicited commercial advertising or non-commercial proselytism",
"Fraudulent schemes, including get-rich-quick schemes and pyramid schemes",
"Phishing attempts, unrealistic offers, or misleading advertisements",
"Content with misleading or false information",
"Malware or harmful links",
"Adult content or explicit material",
"Excessive use of capital letters, punctuation marks, or emojis to attract attention",
],
language="spanish",
num_samples=10000
)
This model is intended to:
Not intended for: