Created
February 27, 2019 18:54
-
-
Save talfco/7539efa3f2146137f923aaefc404a0e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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