generating unigrams and bigrams