Downloads · 30 days
0
BluSerK/Spam_filter_eng
Spam_filter_eng is a text classification model from BluSerK. Use it when you need a label for a piece of text. The card lists the license as mit.
A lightweight spam/ham text classifier for English messages, built with a custom preprocessing pipeline (tokenization, stopword removal, lemmatization) and TF-IDF features feeding into a Multinomial Naive Bayes classi…
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2026
Repo size
1.7 MB
Likes
0
Public
Click a slice to open those files.
.joblib1.7 MB · 100%
From the Hugging Face model README
A lightweight spam/ham text classifier for English messages, built with a custom preprocessing pipeline (tokenization, stopword removal, lemmatization) and TF-IDF features feeding into a Multinomial Naive Bayes classifier.
Binary spam classification for English text messages/emails. Part of a multilingual spam detection system that automatically routes text to a language-specific model (English or Arabic) based on detected language.
import joblib
model = joblib.load("spam_eng_nb.joblib")
prediction = model.predict(["Congratulations! You've won a free prize, click here now"])
print(prediction) # 1 = spam, 0 = ham