How abhishek-cee/sms-spam-detection works
This is a Streamlit SMS spam-classification application. A user opens the dashboard, which loads and validates the labelled SMS dataset, splits it, and trains a CountVectorizer–Multinomial Naive Bayes pipeline. Users can enter a message for a prediction or inspect held-out evaluation metrics, a confusion matrix, and a downloadable classification report. The README documents these capabilities, and the sampled app excerpt supports the main data and model flow; some intervening implementation details were not shown.
Main entry points: app.py Load and validate · SMSSpamCollection SMS dataset
Components 10
Data preparation
- SMS dataset
SMSSpamCollection - Load and validate
app.py
Model workflow
- Train/test split
app.py - CountVectorizer
app.py - Naive Bayes
app.py
Dashboard features
- Dataset dashboard
app.py - SMS detector
app.py - Model evaluation
app.py - CSV report
app.py
Other components
- User
Connections 11
- User → Dataset dashboard: selects view
app.py - Dataset dashboard → Load and validate: loads data
app.py - Load and validate → SMS dataset: reads
app.py - Load and validate → Train/test split: prepares labels
app.py - Train/test split → CountVectorizer: trains pipeline
app.py - CountVectorizer → Naive Bayes: provides features
app.py - User → SMS detector: enters message
app.py - SMS detector → Naive Bayes: predicts
app.py - User → Model evaluation: opens view
app.py - Model evaluation → Naive Bayes: evaluates predictions
app.py - Model evaluation → CSV report: exports
app.py