Zum Inhalt

matcher

module wittgenstein_entity_resolution.matcher

Classes

  • EntityMatcher — Matches attributes of two entities to decide if they are candidate duplicates.

wittgenstein_entity_resolution.matcher.EntityMatcher

class EntityMatcher(thresholds: Dict[str, float] = None)

Matches attributes of two entities to decide if they are candidate duplicates.

Methods

  • string_similarity — Calculate basic sequence matcher similarity ratio between two strings.

  • find_match — Compare fields of two records and calculate a duplicate match score.

wittgenstein_entity_resolution.matcher.EntityMatcher.string_similarity

method EntityMatcher.string_similarity(s1: str, s2: str) → float

Calculate basic sequence matcher similarity ratio between two strings.

wittgenstein_entity_resolution.matcher.EntityMatcher.find_match

method EntityMatcher.find_match(primary: Dict[str, Any], candidate: Dict[str, Any]) → Optional[DuplicateCandidate]

Compare fields of two records and calculate a duplicate match score.