bayes rule for text classification