def trigrams(sequence, **kwargs):
 for item in ngrams(sequence, 3, **kwargs):
  (yield item)

def trigrams ( sequence , ** kwargs ) : for item in ngrams ( sequence , 3 , ** kwargs ) : ( yield item )
return the trigrams generated from a sequence of items .