merge_machine/preprocess_fields_v3.py
def parse_person_name_list(s, itemValidator, i1 = 0, delimiters = ',;\t', stripChars = ' <>[](){}"\''):
	''' Parameters:
		itemValidator takes an input string and returns a list of mappings
			{ field name: field value if the item is validated or else None }.

		Returns a list of triples (item, startIndex, endIndex)
			where item is a (field name, field value) dictionary. '''
	s0 = DELIMITER_TOKENS_RE.sub(delimiters[0], s)
	for d in delimiters:
		(s1, s2, s3) = s0.partition(d)
		if len(s2) == 1:
			return singleton_list((s1, i1, i1 + len(s1)), validate_person_name_match, stripChars)
			+ parse_person_name_list(s3, validate_person_name_match, i1 + len(s1) + len(s2), delimiters = delimiters)
	return singleton_list((s0, i1, i1 + len(s0)), validate_person_name_match, stripChars)
 Parameters:
		itemValidator takes an input string and returns a list of mappings
			{ field name: field value if the item is validated or else None }.

		Returns a list of triples (item, startIndex, endIndex)
			where item is a (field name, field value) dictionary. 
itemValidator takes an input string and returns a list of mappings
{ field name: field value if the item is validated or else None }.

Returns a list of triples (item, startIndex, endIndex)
where item is a (field name, field value) dictionary.
itemValidator takes an input string and returns a list of mappings { field name : field value if the item is validated or else None } . Returns a list of triples ( item startIndex endIndex ) where item is a ( field name field value ) dictionary .
def parse_person_name_list(s, itemValidator, i1 = 0, delimiters = ',;\t', stripChars = ' <>[](){}"\''):
	s0 = DELIMITER_TOKENS_RE.sub(delimiters[0], s)
	for d in delimiters:
		(s1, s2, s3) = s0.partition(d)
		if len(s2) == 1:
			return singleton_list((s1, i1, i1 + len(s1)), validate_person_name_match, stripChars)
			+ parse_person_name_list(s3, validate_person_name_match, i1 + len(s1) + len(s2), delimiters = delimiters)
	return singleton_list((s0, i1, i1 + len(s0)), validate_person_name_match, stripChars)
def parse_person_name_list ( s , itemValidator , i1 = 0 , delimiters = ',;\t' , stripChars = ' <>[](){}"\'' ) : s0 = DELIMITER_TOKENS_RE . sub ( delimiters [ 0 ] , s ) for d in delimiters : ( s1 , s2 , s3 ) = s0 . partition ( d ) if len ( s2 ) == 1 : return singleton_list ( ( s1 , i1 , i1 + len ( s1 ) ) , validate_person_name_match , stripChars ) + parse_person_name_list ( s3 , validate_person_name_match , i1 + len ( s1 ) + len ( s2 ) , delimiters = delimiters ) return singleton_list ( ( s0 , i1 , i1 + len ( s0 ) ) , validate_person_name_match , stripChars )
Parameters:
itemValidator takes an input string and returns a list of mappings
{ field name: field value if the item is validated or else None }.
Parameters : itemValidator takes an input string and returns a list of mappings { field name : field value if the item is validated or else None } .
''' Parameters:
		itemValidator takes an input string and returns a list of mappings
			{ field name: field value if the item is validated or else None }.

		Returns a list of triples (item, startIndex, endIndex)
			where item is a (field name, field value) dictionary. '''
s
itemValidator
i1
delimiters
stripChars