PHP implementation of multinomial naive bayes classifier.