Production-oriented text classification repository with two practical pipelines:
- Spam detection from YouTube comments.
- Multi-class email intent/topic classification on the Enron dataset.
The repository combines lightweight, inspectable baselines with notebook-based experimentation so model behavior can be audited and iterated quickly.
Teams that handle support messages, user-generated content, or inbound communications need reliable classification to reduce manual triage and response latency. This repository provides a reproducible foundation for that workflow.
01 - Spam Detection/
Config/
Data/
Preprocessing/
Model/
main.py
README.md
02 - Email Classification - EnronData/
configs/
dataloader/
dataset/
model/
notebooks/
main.py
README.md
Notebook_Pipeline/
template.py
- Data loading
- Deterministic local loading from repository-relative paths.
- Text normalization
- Config-driven preprocessing functions for cleaning, normalization, and token-level filtering.
- Feature/model experimentation
- Notebook workflows for classical ML and transformer-based modeling.
- Evaluation
- Standard classification metrics and saved artifacts for comparison.
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r "01 - Spam Detection\requirements.txt"python "01 - Spam Detection\main.py" --preview-rows 5python "02 - Email Classification - EnronData\main.py" --preview-rows 5- YouTube spam comment CSV files are expected under
01 - Spam Detection/Data/youtube_video_comments. - Enron processed dataset is expected at
02 - Email Classification - EnronData/dataset/preprocessed.csv.
- Paths are resolved relative to the repository, not local machine absolute paths.
- Entry points are scriptable from CLI and suitable for CI smoke checks.
- Notebook content is preserved for experimentation and comparison runs.
- Add typed training and inference modules for classical ML baselines.
- Add tokenizer/vectorizer persistence and model versioning.
- Add unit tests for preprocessing and dataloader contracts.
This repository is open source under the MIT License.