denselinkage.matching.ThresholdMatcher

class denselinkage.matching.ThresholdMatcher(*, threshold: float = 0.5)[source]

Bases: Matcher

Dependency-free reference matcher; gates on the carried similarity.

match(pairs: Sequence[CandidatePair]) list[MatchDecision | MatchError][source]

One outcome per input pair, aligned by position. A pair the matcher cannot decide yields a MatchError (never raises into the batch, so one bad call does not abort the rest).