def getBigrams(l): b = [] for x in l: b.append(list(bigrams(x))) return b #calculate trigrams of every item of the list l