#NEWLINE# def __init__( self , double_metaphone = False , metaphone = False , soundex = False , nysiis = False , caverphone = False , * args , **kwargs ) : #NEWLINE# #INDENT# self . funs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if double_metaphone : #NEWLINE# #INDENT# self . funs [ 'double-metaphone' ] = ( lambda s : dm ( unicode ( s ) ) ) #NEWLINE# #UNINDENT# if args : #NEWLINE# #INDENT# self . funs [ 'metaphone' ] = phonetics . metaphone #NEWLINE# #UNINDENT# if soundex : #NEWLINE# #INDENT# self . funs [ 'soundex' ] = phonetics . soundex #NEWLINE# #UNINDENT# if nysiis : #NEWLINE# #INDENT# self . funs [ 'nysiis' ] = phonetics . nysiis #NEWLINE# #UNINDENT# if caverphone : #NEWLINE# #INDENT# self . funs [ 'caverphone' ] = phonetics . caverphone #NEWLINE# #UNINDENT# ClassifierBasedPOSTagger . __init__ ( self , * args , ** kwargs )