Match by date¶
Description¶
Both inputs A [OBJ,DATE]
and B [OBJ,DATE]
contain pairs [candidate, evidence]
.
The block compares the evidence columns from the inputs and return as matches the corresponding candidate objects.
Optional input Cands [OBJ,OBJ]
can limit the matching to only the pairs of candidates listed.
The first column corresponds to the candidate column of
A
.The second column corresponds to the candidate column of
B
.Scores are propagated to final matches.
Input¶
A [OBJ,DATE]
: a list of[candidate, evidence]
pairs, in which theevidence
column will be used for comparison and thecandidate
column will be the resultCands [OBJ,OBJ]
(optional) : candidate pairs, only candidate columns ofA
andB
that are inCands
will be matchedB [OBJ,DATE]
: a list of[candidate, evidence]
pairs, in which theevidence
column will be used for comparison and thecandidate
column will be the result
Output¶
RESULT [OBJ,OBJ]
: the matchedcandidate
items fromA
andB
NOTA [OBJ]
: thecandidate
items fromA
that did not match with an item fromB
NOTB [OBJ]
: thecandidate
items fromB
that did not match with an item fromA
Parameters¶
Comparison
: Comparison function to use (=
,!=
,<
,>
,<=
,>=
,day-distance
)Max day-distance
: whenComparison
is set today-distance
, the match is valid only if the difference in days between the two dates is not greater than this valueSlope
: positive value determining the slope of the ranking curve. The higher the slope, the closer together the resulting scores.Exclude self-matches
: whether to emit the match if the objects inA
andB
are the same. Mostly useful whenA
andB
come from the same sourceExclude symmetrical matches
: whether to keep only one between matchesA-B
andB-A
. It cannot be predicted which of the two is kept.