Naïve Bayes Classification for Text and Categorical Data using Prior and Posterior Probabilities