Skip to content

Instantly share code, notes, and snippets.

@talfco
Created February 27, 2019 22:27
Show Gist options
  • Save talfco/6396c6482136f24a4f6ce14f475d15f2 to your computer and use it in GitHub Desktop.
Save talfco/6396c6482136f24a4f6ce14f475d15f2 to your computer and use it in GitHub Desktop.
def __calculate_name_matching(self, row):
name = row['lastName']+' '+row['firstName']+' '+row['middleName']
norm_name = sort_words(normalize_unicode_to_ascii(name))
tp = double_metaphone(norm_name)
row['col_match1'] = norm_name
row['col_match2'] = tp[0]
row['col_match3'] = tp[1]
return row
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment