Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extractOne is sensitive to ordering #44

Open
rafikmatta opened this issue Dec 21, 2022 · 0 comments
Open

extractOne is sensitive to ordering #44

rafikmatta opened this issue Dec 21, 2022 · 0 comments

Comments

@rafikmatta
Copy link

rafikmatta commented Dec 21, 2022

extractOne changes result based on ordering, and my guess is this is due to Levenstein distance being equal. Maybe a new distance measure is necessary?

e.g.
process.extractOne("C++",["C#","C++","C",".NET"])
Out - ('C#', 100)

process.extractOne("C++",["C++","C#","C",".NET"])
Out - ('C++', 100)

Maybe a heuristic needs to come in for exact match?

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

No branches or pull requests

1 participant