fixed ngram training