#NEWLINE# def normalize( line ) : #NEWLINE# #INDENT# ' Return only the subset of chars from accepted_chars.\n    This helps keep the  model relatively small by ignoring punctuation, \n    infrequenty symbols, etc. ' #NEWLINE# return [ c . lower ( ) for c in c if ( c . lower ( ) in accepted_chars ) ]