'ExactMatchLevel' object has no attribute 'get_comparison' #2349
Unanswered
tombetinashe
asked this question in
Q&A
Replies: 1 comment
-
It looks like at the end of your settings you have accidentally put a comparison level instead of a comparison, you should have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently receiving this error in splink 4 "ExactMatchLevel' object has no attribute 'get_comparison".Your assistance will be highly appreciated.
extended_model_settings = {
"unique_id_column_name": "record_id",
"link_type": "link_only",
"blocking_rules_to_generate_predictions": blocking_rules,
"comparisons": [
{
"output_column_name": "Full name",
"comparison_levels": [
{
"sql_condition": "(firstname_l IS NULL OR firstname_r IS NULL) and (surname_l IS NULL OR surname_r IS NULL)",
"label_for_charts": "Null",
"is_null_level": True,
},
# full name match
cll.ExactMatchLevel("full_name", term_frequency_adjustments=True),
# typos - keep levels across full name rather than scoring separately
cll.JaroWinklerLevel("full_name", 0.9),
cll.JaroWinklerLevel("full_name", 0.8),
# name switched
cll.ColumnsReversedLevel("firstname", "surname"),
# name switched + typo
}
linker_detailed=Linker(dfs, extended_model_settings, db_api=DuckDBAPI())
Beta Was this translation helpful? Give feedback.
All reactions