Extracting respective word from query for rapidfuzz.process result #84
VirajBhatt
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I wanted to know if there is a way to also get the respective word from the query that is being compared to the word for similarity match when using rapidfuzz.process.
eg -
text = 'There is a bee that bites me in the hand'
choices = ['bite', 'bit']
process.extract(text, choices, scorer = fuzz.token_ratio)
Output -> [('bite', 18.181818181818187, 0), ('bit', 13.953488372093027, 1)]
What I want to achieve is,,
Output -> [('bite', 'bites', 18.181818181818187, 0), ('bit', 'bites', 13.953488372093027, 1)]
Beta Was this translation helpful? Give feedback.
All reactions