From 0dabc0f8407db2d139e01363838dce5888126793 Mon Sep 17 00:00:00 2001 From: jw2249a Date: Thu, 16 May 2024 11:22:27 -0700 Subject: [PATCH] adding json example --- README.md | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b6cdac0..354a53d 100644 --- a/README.md +++ b/README.md @@ -78,19 +78,41 @@ Each `method` has a number of arguments that can be specified for that matching - - - - - - - - - - - `dedupe_matches`: Whether to dedupe the matches within the dataset. +## Example FastLink configuration with 1 embedded comparisons dictionary + +``` json +{ + "link_type": "link_only", + "idvar": ["id", "id2"], + "comparisons": { + "name": "total", + "prior_lambda": 0.000001, + "w_lambda": 0.5, + "threshold_match": 0.88, + "variables": [ + {"varname": "firstname", "method": "fuzzy", "partial": true, "cut_a": 0.92, "cut_b": 0.88, "upper": true, "tf_adjust": true, "w": 0.1}, + {"varname": "middlename", "method": "exact"}, + {"varname": "lastname", "method": "jarowinkler", "tf_adjust": true}, + {"varname": "birthyear", "method": "exact"}, + { + "comparisons": { + "name": "address", + "threshold_match": 0.92, + "variables": [ + {"varname": "housenum", "method": "exact", "tf_adjust": true}, + {"varname": "streetname", "method": "jarowinkler", "w": 0.1, "tf_adjust": true, "tf_adjustment_weight":0.25, "tf_minimum_u_value": 0.001}, + {"varname": "city", "method": "jarowinkler", "tf_adjustment_weight":0.15, "tf_adjust": true} + ] + } + } + ] + } +} +``` + __________________ ### `fastLink`'s output