You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

πŸ“§ Spam Classifier (Scikit-learn + spaCy)

This model classifies messages as spam or ham using traditional NLP techniques.

🧠 Model Details

  • Preprocessing: Tokenization + Lemmatization using spaCy
  • Vectorization: TF-IDF (1-2 grams)
  • Feature Selection: Chi2 with top 1000 features
  • Model: Logistic Regression (class_weight="balanced", max_iter=1000)
  • Performance: ~87% accuracy on balanced test set (800 spam, 800 ham)

πŸ“¦ Files

  • spam_classifier_bundle.joblib: Includes trained model, TF-IDF vectorizer, label encoder, and feature selector

πŸ“₯ Load Model (Example)

from huggingface_hub import hf_hub_download
import joblib

bundle = joblib.load(hf_hub_download("mageshcruz/spam-classifier-scikit", "spam_classifier.joblib"))
model = bundle["model"]
vector = bundle["vectorizer"]
selector = bundle["selector"]
le = bundle["label_encoder"]
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support