How tanishqsingh999/email-spam-classifier works
Spam Filter AI is a desktop email spam classifier. Its user workflow is to paste email text, submit it for preprocessing and TF-IDF transformation, and see a Naive Bayes spam/not-spam result; the GUI can also clear the text. Separate scripts prepare datasets, extract training features, and train the classifier. The graph includes those documented training stages and saved artifacts. Relationships are based on the shown source and README; no separate evaluation metrics or external email service are shown.
Main entry points: gui.py Tkinter app · feature_extraction.py TF-IDF features · data_preprocessing.py Text preprocessing · model.py Naive Bayes training
Components 8
Desktop interface
- Tkinter app
src/gui.py
Text preparation
- Text preprocessing
src/data_preprocessing.py
Model training
- TF-IDF features
src/feature_extraction.py - Naive Bayes training
src/model.py - Training split
src/evaluation.py - Saved model and vectorizer
src/gui.py
Other components
- Email user
- Email dataset
Connections 16
- Email user → Tkinter app: pastes email
README.md - Tkinter app → Text preprocessing: preprocesses text
src/gui.py - Text preprocessing → Tkinter app: returns cleaned text
src/gui.py - Tkinter app → Saved model and vectorizer: loads model files
src/gui.py - Tkinter app → Tkinter app: transforms and predicts
src/gui.py - Tkinter app → Email user: shows classification
src/gui.py - Email user → Tkinter app: clears email
src/gui.py - Email dataset → Text preprocessing: provides raw data
README.md - Text preprocessing → TF-IDF features: prepares training text
README.md - TF-IDF features → Naive Bayes training: saves feature matrix
src/model.py - Email dataset → Naive Bayes training: provides labels
src/model.py - Naive Bayes training → Saved model and vectorizer: saves classifier
src/model.py - TF-IDF features → Saved model and vectorizer: saves vectorizer
src/feature_extraction.py - Email dataset → Training split: provides labels
src/evaluation.py - TF-IDF features → Training split: loads feature matrix
src/evaluation.py - Training split → Saved model and vectorizer: saves classifier
src/evaluation.py