Simple naive bayes text classifier