fixed checkNGram
kmeans and naive bayes