How rohan271004/sms_spam_detection works
This repository is an SMS spam-classification product: a user enters a message in the Streamlit app and receives a spam/not-spam result. The app preprocesses text, transforms it with the serialized vectorizer, and classifies it with the pretrained model. The README also describes a notebook for training and evaluation and a dataset for training/testing; their internal workflow is not shown in the sampled source, so that branch is limited to documented relationships.
Main entry points: app.py Streamlit interface · vectorizer.pkl Text vectorizer · model.pkl Spam classifier · SMS_SPAM_DETECTION.ipynb Training and evaluation
Components 7
User interaction
- Streamlit interface
app.py
Message classification
- Text preprocessing
app.py - Text vectorizer
vectorizer.pkl - Spam classifier
model.pkl
Training data
- Training and evaluation
SMS_SPAM_DETECTION.ipynb - SMS dataset
sms-spam-detection.csv
Other components
- Message sender
Connections 7
- Message sender → Streamlit interface: enters SMS
README.md - Streamlit interface → Text preprocessing: preprocesses text
app.py - Text preprocessing → Text vectorizer: transforms text
app.py - Streamlit interface → Text vectorizer: loads artifact
app.py - Streamlit interface → Spam classifier: loads artifact
app.py - Streamlit interface → Spam classifier: predicts class
app.py - Training and evaluation → SMS dataset: uses for training
README.md