An implemention of a Naive Bayes training algorithm in Python.