adding ngram dictionary for training