Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

partial_ratio() for the long str #214

Open
liuyindyx opened this issue Aug 21, 2018 · 1 comment
Open

partial_ratio() for the long str #214

liuyindyx opened this issue Aug 21, 2018 · 1 comment

Comments

@liuyindyx
Copy link

liuyindyx commented Aug 21, 2018

when i matching some short string with long string which is more than 200.
the partial_ration() will call difflib.SequenceMatcher.get_matching_blocks(), which autojunk=True.

so i can't get the right result. can i pass this parameter to sequenceMatcher?

same question in stack overflow:
https://stackoverflow.com/questions/51941303/get-matching-blocks-of-sequencematcher-when-match-long-string/51941787#51941787

@TomRaz
Copy link

TomRaz commented Mar 1, 2019

Having the same issue here.
Also, when using the python-Levenshtein speedup, AFAIK there is no autojunk.
This is leading to inconsistent results between the two implementations.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants