fuzzywuzzy icon indicating copy to clipboard operation
fuzzywuzzy copied to clipboard

Can we priortize results to push first appears over top

Open Zaky7 opened this issue 2 years ago • 1 comments

hi, I am using this library for a small set of data that has 10k records. But for some strings, I am getting results in the wrong order.

for list of choices query: "Visa"

choices = ["grupo televisa s.a.", "is", "sa", "visa inc.", "via"]

// result
('grupo televisa s.a.', 90), ('is', 90), ('sa', 90), ('visa inc.', 90)
``

I want the Visa string to appear in the first place. how can I achieve that?

Zaky7 avatar Nov 27 '21 05:11 Zaky7

@xdrop any comment on this

Zaky7 avatar Nov 27 '21 16:11 Zaky7