def run(key, altUrl='https://api.rosette.com/rest/v1/'): # Create an API instance api = API(user_key=key, service_url=altUrl) name_dedupe_data = 'John Smith,Johnathon Smith,Fred Jones' threshold = 0.75 params = NameDeduplicationParameters() params["names"] = name_dedupe_data.split(',') params["threshold"] = threshold try: return api.name_deduplication(params) except RosetteException as e: print(e)
def run(key, alt_url='https://api.rosette.com/rest/v1/'): """ Run the example """ # Create an API instance api = API(user_key=key, service_url=alt_url) name_dedupe_data = "Alice Terry,Alice Thierry,Betty Grable,Betty Gable,Norma Shearer,Norm Shearer,Brigitte Helm,Bridget Helem,Judy Holliday,Julie Halliday" threshold = 0.75 params = NameDeduplicationParameters() params["names"] = name_dedupe_data.split(',') params["threshold"] = threshold try: return api.name_deduplication(params) except RosetteException as exception: print(exception)
def run(data, key="b68ed921660dca2fbb79a4a481e931ff", alt_url='https://api.rosette.com/rest/v1/'): """ Run the example """ # Create an API instance api = API(user_key=key, service_url=alt_url) #name_dedupe_data = "AMERICAN HEYER-SCHULTE CORPORATION,AMERICAN HEYER- SCHULTE CORPORATION,AMERICAN HOECHST CORPORATION,Betty Gable,Norma Shearer,Norm Shearer,Brigitte Helm,Bridget Helem,Judy Holliday,Julie Halliday" #name_dedupe_data = data threshold = 0.8 params = NameDeduplicationParameters() params["names"] = data params["threshold"] = threshold try: return api.name_deduplication(params) except RosetteException as exception: print(exception)
def run(key="b68ed921660dca2fbb79a4a481e931ff", alt_url='https://api.rosette.com/rest/v1/'): """ Run the example """ # Create an API instance api = API(user_key=key, service_url=alt_url) #name_dedupe_data = "AMERICAN HEYER-SCHULTE CORPORATION,AMERICAN HEYER- SCHULTE CORPORATION,AMERICAN HOECHST CORPORATION,Betty Gable,Norma Shearer,Norm Shearer,Brigitte Helm,Bridget Helem,Judy Holliday,Julie Halliday" #name_dedupe_data = "ALADDIN INDUSTRIES,ALADDIN INDUSTRIES LIMITED,ALADDIN INDUSTRIES INCORPORATED,ALFA-LAVAL AB.,AMAX MAGNESIUM,AMAX MAGNESIUM CORPORATION" name_dedupe_data = "IBM,I.B.M,ibm,IBM corporate,International Business Machines" threshold = 0.7 params = NameDeduplicationParameters() params["names"] = name_dedupe_data.split(',') params["threshold"] = threshold try: return api.name_deduplication(params) except RosetteException as exception: print(exception)