Skip to content

Commit a76df1c

Browse files
author
Chris Park
committed
Updated name_deduplication example
- Using name_dedupe_data token - Splits string of comma separated names
1 parent 87406c9 commit a76df1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/name_deduplication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def run(key, altUrl='https://api.rosette.com/rest/v1/'):
1515
# Create an API instance
1616
api = API(user_key=key, service_url=altUrl)
1717

18-
dedup_list = ["John Smith", "Johnathon Smith", "Fred Jones"]
18+
name_dedupe_data = 'John Smith,Johnathon Smith,Fred Jones'
1919
threshold = 0.75
2020
params = NameDeduplicationParameters()
21-
params["names"] = dedup_list
21+
params["names"] = name_dedupe_data.split(',')
2222
params["threshold"] = threshold
2323
try:
2424
return api.name_deduplication(params)

0 commit comments

Comments
 (0)