~/talk

String Comparison in Real Life

Talkat Conf42 Python 2021 · on Thursday, 2021-05-27· [python, data-science]
linkedin:naomi-kriger
slides:none on file

Compares practical Python approaches for real data: jellyfish: Levenshtein and Damerau‑Levenshtein gives edit distances (counts insert/delete/replace, Damerau treats adjacent swaps as one), while fuzzywuzzy: ratio, token_sort_ratio, token_set_ratio returns 0–100 similarity and handles token order and duplicates. Shows fraud‑detection and DNA examples, notes surprising Levenshtein distance of 14 for reordered long phrases (e.g. "i love comparing strings" vs "comparing strings i love"), recommends choosing thresholds (example 80/30) and finds both libraries simple and effective for typical typos and reordering.

AI-written summary · about

  1. 0:00Introduction
  2. 2:41Real-world applications
  3. 6:12Python libraries for comparison
  4. 7:16Levenshtein distance
  5. 10:48When to use Levenshtein
  6. 12:31Introducing fuzzywuzzy
  7. 13:13Fuzz ratio scoring
  8. 16:41Understanding thresholds
  9. 18:47Fuzz token sort ratio
  10. 19:31Fuzz token set ratio
  11. 21:18Advantages of fuzzywuzzy
  12. 22:42Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.