Skip to content

A text-classification web app that identifies spam using natural language processing and machine learning, complete with probability-based confidence output.

Notifications You must be signed in to change notification settings

styfie/Email-Spam-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ง Spam Email Classifier

A minimalistic machine learning app to classify email or message text as Spam or Ham, built using Streamlit, scikit-learn, and a trained model from the UCI SMS Spam Collection Dataset.


๐Ÿ“Š Dataset

This project uses the UCI SMS Spam Collection Dataset, a well-known benchmark dataset consisting of 5,574 labeled SMS messages, divided into:

  • ham โ†’ legitimate (non-spam) messages
  • spam โ†’ unsolicited, promotional, or fraudulent messages

๐Ÿง  Function of the Spam Detection Model

The machine learning model analyzes input text and predicts whether the message is Spam or Ham based on:

  • Keyword frequency
  • TF-IDF vector patterns
  • Statistical patterns commonly seen in spam messages

This enables fast text screening for:

  • Email filtering
  • SMS moderation
  • Basic content risk assessment

The model is trained using TF-IDF Vectorization combined with a Machine Learning classifier (Support Vector Machine).


๐Ÿ–ฅ๏ธ Live Demo

https://styfiespamdetection.streamlit.app/

About

A text-classification web app that identifies spam using natural language processing and machine learning, complete with probability-based confidence output.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages