Skip to content

Instantly share code, notes, and snippets.

@talfco
Created February 27, 2019 18:54
Show Gist options
  • Save talfco/7539efa3f2146137f923aaefc404a0e9 to your computer and use it in GitHub Desktop.
Save talfco/7539efa3f2146137f923aaefc404a0e9 to your computer and use it in GitHub Desktop.
def __calculate_name_matching(self, row):
name = row['Name']
for clean in self.__cfg['twitterNameCleaner']:
name = name.replace(clean ,'')
for expand in self.__cfg['twitterNamesExpander']:
name = name.replace(expand.get('abbreviation'), expand.get('name'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment