Skip to content

Various utility and core functions

followthemoney.compare.compare(left, right, weights=COMPARE_WEIGHTS)

Compare two entities and return a match score.

Source code in followthemoney/compare.py
def compare(
    left: EntityProxy,
    right: EntityProxy,
    weights: Weights = COMPARE_WEIGHTS,
) -> float:
    """Compare two entities and return a match score."""
    scores = compare_scores(left, right)
    return _compare(scores, weights)