Skip to content

Instantly share code, notes, and snippets.

@walkerdb
Last active August 29, 2015 14:26
Show Gist options
  • Save walkerdb/e729683ca9b787a1b4ee to your computer and use it in GitHub Desktop.
Save walkerdb/e729683ca9b787a1b4ee to your computer and use it in GitHub Desktop.
>>> from fuzzywuzzy import fuzz
>>> bentley_term = "Emily Dickinson (1830-1886)"
>>> lc_term = "Dickinson, Emily, 1830-1886"
>>> fuzz.ratio(bentley_term, lc_term)
70
>>> fuzz.ratio("Clark Kent", "Superman")
22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment