ngram Classifier fixes