extrct Ngrams and Trigrams