naivebayes python code for supervised and unsupervised training and application of Naive Bayes models for text classification TODO: soft EM probably add a wrapper class cross validation for supervised models