Skip to content

This project is a Spam Email Classifier built using Machine Learning (ML) and Flask. It analyzes the content of an email or message and predicts whether it is Spam or Not Spam (Ham). The model is trained on a labeled dataset of spam and ham messages, vectorized using TF-IDF, and deployed as a web application for easy interaction.

Notifications You must be signed in to change notification settings

Shrutie55/Spam_Email_Classifier

Repository files navigation

📧 Spam Email Classifier

A simple Machine Learning-based Spam Email Classifier built using Python, Flask, and Scikit-learn.
It predicts whether an email or message is Spam or Not Spam (Ham) using natural language processing techniques.


🚀 Features

  • 🧹 Text preprocessing and cleaning
  • 🔤 TF-IDF Vectorization for feature extraction
  • 🤖 Trained using Naive Bayes and Logistic Regression models
  • 🌐 Flask web app interface for predictions
  • 💾 Models saved using joblib for fast loading

🧩 Tech Stack

  • Python 3.x
  • Flask
  • Scikit-learn
  • Pandas, NumPy
  • HTML, CSS

⚙️ How to Run

# Clone this repository
git clone https://github.com/<your-username>/spam-email-classifier.git

# Navigate to the project folder
cd spam-email-classifier

# Install dependencies
pip install -r requirements.txt

# Run the Flask app
python app.py

About

This project is a Spam Email Classifier built using Machine Learning (ML) and Flask. It analyzes the content of an email or message and predicts whether it is Spam or Not Spam (Ham). The model is trained on a labeled dataset of spam and ham messages, vectorized using TF-IDF, and deployed as a web application for easy interaction.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published