Skip to content

levenshtein_at_thresholds("Description",2) #702

Answered by RobinL
msiemionCalistapw asked this question in Q&A
Discussion options

You must be logged in to vote

That will create one comparison level with a threshold distance of 1, and a second at a threshold distance of 2

There's some documentation here:

An example of the output with default arguments and setting

And the comparison has a human_readable_description property that will explain what it does:

def human_readable_description(self):

So for instance:

from splink.duckdb.duckdb_comparison_library import (
    levenshtein_at_thresholds,
)

print(levenshtein_at_thresholds("my_col", [1,2,3]).human_readable_description)

will output

Comparison 'Exact match…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RobinL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants