Skip to content

Add score_cutoff to DamerauLevenshtein and Levenshtein #2

@symb10z

Description

@symb10z

Hi, could you please add score_cutoff feature to DamerauLevenshtein and Levenshtein functions?
It would make function complete faster in case we need only word pairs having distance less or equal to score_cutoff.

score_cutoff (int, optional) – Maximum distance between s1 and s2, that is considered as a result. If the distance is bigger than score_cutoff, score_cutoff + 1 is returned instead. Default is None, which deactivates this behaviour.

See for reference: https://maxbachmann.github.io/RapidFuzz/Usage/distance/DamerauLevenshtein.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions