def simple_preprocess(doc, deacc=False, min_len=2, max_len=15):
 tokens = [token for token in tokenize(doc, lower=True, deacc=deacc, errors='ignore') if ((min_len <= len(token) <= max_len) and (not token.startswith('_')))]
 return tokens

def simple_preprocess ( doc , deacc = False , min_len = 2 , max_len = 15 ) : tokens = [ token for token in tokenize ( doc , lower = True , deacc = deacc , errors = 'ignore' ) if ( ( min_len <= len ( token ) <= max_len ) and ( not token . startswith ( '_' ) ) ) ] return tokens
convert a document into a list of tokens .