A web application that uses a Naive Bayes machine learning model to classify text as either "Spam" or "Ham" (not spam).
- Real-time Analysis: Paste any text (email, SMS, etc.) and get an instant prediction.
- Confidence Score: See the model's confidence in its prediction.
- Clean UI: Simple and intuitive interface built with Flask and Tailwind CSS.
- Preprocessing: Includes text cleaning steps like lowercasing, removing stopwords, and lemmatization for better accuracy.
- Backend: Python, Flask
- Machine Learning: Scikit-learn, Pandas, NLTK
- Frontend: HTML, Tailwind CSS, JavaScript
-
Clone the repository:
git clone https://github.com/prabanjan-ux/spam-detector.git cd spam-detector -
Create and activate a virtual environment:
# For Windows python -m venv venv venv\Scripts\activate # For macOS/Linux python3 -m venv venv source venv/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Run the Flask application:
flask run
-
Open your browser and go to
http://127.0.0.1:5000
