def getTrigrams(l): tr = [] for x in l: tr.append(list(trigrams(x))) return tr #calculate pos tag score