def bigrams(sequence, **kwargs):
 for item in ngrams(sequence, 2, **kwargs):
  (yield item)

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