Email Spam Classification App is a real-time email spam classification application developed with Streamlit. It employs TFβIDF vectorization for feature extraction, a Multinomial Naive Bayes classifier for prediction, and joblib for efficient model serialization and loading.
Maintain the integrity of your inbox by accurately identifying and filtering unwanted messages.
- Instant Predictions
TFβIDF + MultinomialNB pipeline delivers results in milliseconds. - Streamlit UI
Clean, interactive front-end for one-click spam detection. - Modular Design
Model and vectorizer serialized withjoblib
for easy updates. - Easy Setup
All dependencies listed inrequirements.txt
:pip install -r requirements.txt
- Open Source MIT-licensed - customize and extend as you like.
-
Clone The Repo
git clone https://github.com/fatimesevilgen/email-spam-classifier.git cd email-spam-classifier
-
Create and activate a virtual environment (optional but recommended)
python -m venv venv # macOS/Linux source venv/bin/activate # Windows venv\Scripts\activate
-
Install Dependencies
pip install -r requirements.txt
-
Run The App
streamlit run app.py
email-spam-classifier/
βββ predict.py # Predict method with model & vectorizer
βββ app.py # Streamlit application code
βββ spam_model.joblib # Trained MultinomialNB model
βββ tfidf_vectorizer.joblib # Trained TFβIDF vectorizer
βββ requirements.txt # Python dependencies
βββ README.md # This file
-
Fork this repository
-
Create a feature branch (git checkout -b feature/awesome-new)
-
Commit your changes (git commit -m "Add awesome new feature")
-
Push to your branch (git push origin feature/awesome-new)
-
Open a Pull Request π
This project is licensed under the MIT License. See the LICENSE file for details.
Questions, suggestions, or just want to say hi?