SpamVanquisher is a Python-based email classification tool using TensorFlow to detect spam and sort emails into folders. This archive contains all source code, configuration files, and setup instructions.
The following dependencies must be installed for the application to run:
- Python 3.9–3.11
- MySQL client library (
MySQLdb) - TensorFlow
- Keras (comes with TensorFlow)
- Other Python libraries (already included in
requirements.txt):pickleloggingthreadingostyping
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install tensorflowpython3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install tensorflow[and-cuda]Verify the installation:
python -c "import tensorflow as tf; print(tf.__version__)"- Clone or extract the archive.
- Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate - Install dependencies:
pip install -r requirements.txt
- Ensure MySQL server is running and the database is configured (see
lib/config.pyfor database settings). - Place training data and logs in the directory specified by
config.TRAINING_DATA_PATH.
python main.py- The application will connect to the database, train the email classification model, and process incoming emails.
- To classify emails, ensure the model is trained or loaded first.