4 ms·
> fuzz.partial_ratio("YANKEES", "NEW YORK YANKEES") ⇒ 100 From what I can see, this will also give 100 for 'NEW', 'KEES', 'YANK' - all of which could mean some
by chime 15y ago
> fuzz.partial_ratio("YANKEES", "NEW YORK YANKEES") ⇒ 100
From what I can see, this will also give 100 for 'NEW', 'KEES', 'YANK' - all of which could mean something completely different. How do they deal with this?
- __mark 15y agoIt's not often people sell tickets to a yanking of new knees? At least that would be my guess, that they also look for keywords.
- josegonzalez 15y agoContext. We also know dates and times - more or less at least, there may be some conversion to UTC if necessary - as well as other information about the event - categories, locations etc. On occasion there are false positives, in which case Our algorithm is the Borg. They will be assimilated. Their grammatical and syntactical distinctiveness will be added to our own. Resistance is futile.