|
Download README.md from ncfad/spam_classifier: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/ncfad/spam_classifier/resolve/main/README.md
- Command line
-
hf download hf://ncfad/spam_classifier/README.md
-
curl -L -o README.md https://huggingface.co/ncfad/spam_classifier/resolve/main/README.md
555 Bytes
Spam / Not Spam Classifier
A simple machine learning model built using Logistic Regression + TF-IDF to detect spam messages.
How it works
- Input: Raw text message
- Preprocessing: TF-IDF Vectorizer
- Model: Logistic Regression
- Output:
spamorham
Files included
model.pkl— trained ML modelvectorizer.pkl— TF-IDF vectorizerinference.py— simple inference script
Example Usage
from inference import predict
print(predict("You have won $1000!!!"))