Finished naive bayes document classifier.