https://github.com/senaldolage/spam-text-classifier
A simple machine learning project to classify whether a given text message is spam or not
https://github.com/senaldolage/spam-text-classifier
python scikit-learn
Last synced: about 2 months ago
JSON representation
A simple machine learning project to classify whether a given text message is spam or not
- Host: GitHub
- URL: https://github.com/senaldolage/spam-text-classifier
- Owner: SenalDolage
- Created: 2025-05-07T05:12:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-07T08:03:07.000Z (about 1 year ago)
- Last Synced: 2025-05-08T02:52:26.113Z (about 1 year ago)
- Topics: python, scikit-learn
- Language: Python
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Spam Text Classifier
A simple machine learning project to classify whether a given text message is spam or not using natural language processing and a Naive Bayes classifier.
Features:
- Classifies messages as "Spam" or "Not Spam"
- Trained using TF-IDF vectorization and Multinomial Naive Bayes
- Includes CLI prediction script
## Results
Prediction Example:
[](https://postimg.cc/ZvWT4VJm)
Training and test data
(available at https://raw.githubusercontent.com/justmarkham/pycon-2016-tutorial/master/data/sms.tsv):
[](https://postimg.cc/mhB9SRhW)
Model Performance:
[](https://postimg.cc/jwyX9XYg)
## Dependencies
- pandas
- sklearn
- joblib