This program takes input a directory path of spam files and a directory path of non spam files to train the Naive Bayes Classifier. Once the training is done, the classifer is provided with a document that is to be classified as a spam or not.