Document Classification Method Based on Contents Using an Improved Multinomial Naïve Bayes Model