Naive Bayes classifier for text classification