def create_ngram_set(input_list, ngram_value=2):
 return set(zip(*[input_list[i:] for i in range(ngram_value)]))

def create_ngram_set ( input_list , ngram_value = 2 ) : return set ( zip ( * [ input_list [ i : ] for i in range ( ngram_value ) ] ) )
extract a set of n-grams from a list of integers .