Skip to content

fuzz.partial_ratio - get some indicator to differentiate between an exact match and a partial match #171

Description

@NikhilKothari
Query = "boy"

Sentence1 = "boycott them"
Sentence2 = "It's a boy"
fuzz.partial_ratio(Query, Sentence1)
>> 100.0

fuzz.partial_ratio(Query, Sentence2)
>> 100.0

@maxbachmann Is it possible to know an exact match (Sentence2) different from a partial match (Sentence1) while using fuzz.partial_ratio?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions