A NaiveBayes based classifier