An implementation of a naive Bayesian classifier.