rapidfuzz / RapidFuzz

Rapid fuzzy string matching in Python using various string metrics
https://rapidfuzz.github.io/RapidFuzz/
MIT License
2.69k stars 119 forks source link

Feature request: function to call process.extract with ProcessPoolExecutor (hidden API detail) and multiple names matched to fixed candidates, scorer, limit and chunksize(processpoolexecutor argument) #350

Closed i30817 closed 12 months ago

i30817 commented 12 months ago

It seems it would be handy. A annoying problem with this is that sometimes you want to cancel\avoid a name with app specific requirements and you have to rebuild the list (which if you're using a API like this is likely huge), so a function that filtered in place and a return that indicated if a name was filtered before running process.extract would be nice.

Im unsure if this is possible with named arguments in the process.extract function instead of positional arguments, because of the way executor.map works by repeating iterables for all function arguments...

i30817 commented 12 months ago

Never mind, figured how to do this, I think.