A simple Naive Bayes spam email classifier
python3 nblearn.py /path/to/input
Run nblearn.py, with the data directory as the only input argument. Data directory should contain directories named "ham" and "spam".
Generates model file "nbmodel.txt"
python3 nbclassify.py /path/to/input
Input directory should contain emails to classify as .txt documents. Uses "nbmodel.txt" file.
Generates output file "nboutput.txt" with the predictions.
python3 nbevaluate.py /path/to/nboutput.txt
Returns precision, recall, and F1 score for the model.