Creation of ngram dict.