Skip to content

"strict" blocking #2507

Answered by RobinL
noah-dbc asked this question in Q&A
Discussion options

You must be logged in to vote

This would typically be done with match weights. You could fix them for that particular field, see:
#2379

Basically you want a very strong negative match weight for the 'does not match' case.
Note when you fix the values you don't need to worry about them summing to one.

So in your case:

import splink.comparison_level_library as cll
import splink.comparison_library as cl
from splink import DuckDBAPI, Linker, SettingsCreator, block_on, splink_datasets

db_api = DuckDBAPI()

df = splink_datasets.fake_1000


settings = SettingsCreator(
    link_type="dedupe_only",
    comparisons=[
        cl.ExactMatch("first_name"),
        cl.ExactMatch("surname"),
        cl.ExactMatch("dob"),
        cl.E…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by noah-dbc
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