Skip to content

RayanAIX/Spam-Email-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📧 Spam Email Classifier

📌 Overview

The Spam Email Classifier is a Machine Learning project that classifies emails as Spam or Ham (Not Spam).
It uses Natural Language Processing (NLP) and Machine Learning algorithms to achieve high accuracy in detecting spam emails.


🚀 Features

  • Preprocessing of raw email text (tokenization, stopword removal, TF-IDF vectorization).
  • Trained ML model for binary classification (Spam / Ham).
  • Interactive Hugging Face demo for real-time testing.
  • Easy to extend with deep learning models in the future.

🗂 Dataset

The model was trained on the popular Spam Email Dataset containing thousands of spam and ham messages.
It ensures balanced training for reliable predictions.


🛠️ Technologies Used

  • Python 🐍
  • Scikit-learn
  • Pandas & NumPy
  • NLTK (for text preprocessing)
  • Hugging Face Spaces + Gradio (for live demo)

📸 Screenshots

(Add your screenshots here: training plots, confusion matrix, Hugging Face demo UI)


🔴 Live Demo

👉 Try the model on Hugging Face: Spam Email Classifier Demo


📈 Results

  • Achieved high accuracy on the test dataset.
  • Correctly identifies spam vs ham messages.
  • Reliable predictions on unseen emails.

🔮 Future Improvements

  • Add deep learning models (LSTM / Transformer-based).
  • Support for multiple languages.
  • Deploy as a browser extension for real-time email classification.

👨‍💻 Author

Muhammad Rayan Shahid
AI & ML Enthusiast

🌐 GitHub
💼 LinkedIn
📊 Kaggle
🤗 Hugging Face
🎥 YouTube - ByteBrilliance AI


About

Spam Email Classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published