def NgramAnalyzer(minsize, maxsize=None):
 return (NgramTokenizer(minsize, maxsize=maxsize) | LowercaseFilter())

def NgramAnalyzer ( minsize , maxsize = None ) : return ( NgramTokenizer ( minsize , maxsize = maxsize ) | LowercaseFilter ( ) )
composes an ngramtokenizer and a lowercasefilter .