xdrop/fuzzywuzzy

Incompatibility with the Python version in handling underscores

DoronRippel opened this issue · 3 comments

The FuzzySearch.tokenSetPartialRatio() method returns different results than the Python version for strings that contain underscore.

Examples:

  • FuzzySearch.tokenSetPartialRatio("worm_mikeala", "mikeala rath") returns 74 while the Python version returns 58
  • FuzzySearch.tokenSetPartialRatio("c_wasyluka", "crystal wasyluka") returns 100 while the Python version returns 80
xdrop commented

Thanks, I have pushed a commit to fix this. This will be fixed in 1.3.4