Machine Learning Navie Bayes for text categorization， multinomial model and bernoulli model。 refer to  http://blog.csdn.net/suipingsp/article/details/41897901