merge_machine/gridding.py
def normalizeAndValidatePhrase(value,
	keepAcronyms = False, tokenValidator = functools.partial(isValidToken, minLength = 2), phraseValidator = isValidPhrase):
	''' Returns a string that joins normalized, valid tokens for the input phrase
		(None if no valid tokens were found) '''
	tokens = validateTokens(value, keepAcronyms, tokenValidator, phraseValidator)
	return ' '.join(tokens) if len(tokens) > 0 else None
 Returns a string that joins normalized, valid tokens for the input phrase
		(None if no valid tokens were found) 
Returns a string that joins normalized, valid tokens for the input phrase
(None if no valid tokens were found)
Returns a string that joins normalized valid tokens for the input phrase ( None if no valid tokens were found )
def normalizeAndValidatePhrase(value,
	keepAcronyms = False, tokenValidator = functools.partial(isValidToken, minLength = 2), phraseValidator = isValidPhrase):
	tokens = validateTokens(value, keepAcronyms, tokenValidator, phraseValidator)
	return ' '.join(tokens) if len(tokens) > 0 else None
def normalizeAndValidatePhrase ( value , keepAcronyms = False , tokenValidator = functools . partial ( isValidToken , minLength = 2 ) , phraseValidator = isValidPhrase ) : tokens = validateTokens ( value , keepAcronyms , tokenValidator , phraseValidator ) return ' ' . join ( tokens ) if len ( tokens ) > 0 else None
Returns a string that joins normalized, valid tokens for the input phrase
(None if no valid tokens were found)
Returns a string that joins normalized valid tokens for the input phrase ( None if no valid tokens were found )
''' Returns a string that joins normalized, valid tokens for the input phrase
		(None if no valid tokens were found) '''
value
keepAcronyms
tokenValidator
phraseValidator