implemented nltk.NaiveBayesClassifier