Skip to content

RuleCondition

Source code in docs_src/capo_entityresolution/types/rule_condition.py
class RuleCondition(TypedDict, closed=True):
    rule_name: "str"
    """<p>A name for the matching rule.</p> <p>For example: <code>Rule1</code> </p>"""
    condition: "str"
    """<p>A statement that specifies the conditions for a matching rule.</p> <p>If your data is accurate, use an Exact matching function: <code>Exact</code> or <code>ExactManyToMany</code>. </p> <p>If your data has variations in spelling or pronunciation, use a Fuzzy matching function: <code>Cosine</code>, <code>Levenshtein</code>, or <code>Soundex</code>. </p> <p>Use operators if you want to combine (<code>AND</code>), separate (<code>OR</code>), or group matching functions <code>(...)</code>.</p> <p>For example: <code>(Cosine(a, 10) AND Exact(b, true)) OR ExactManyToMany(c, d)</code> </p>"""

condition instance-attribute

condition: str

A statement that specifies the conditions for a matching rule.

If your data is accurate, use an Exact matching function: Exact or ExactManyToMany.

If your data has variations in spelling or pronunciation, use a Fuzzy matching function: Cosine, Levenshtein, or Soundex.

Use operators if you want to combine (AND), separate (OR), or group matching functions (...).

For example: (Cosine(a, 10) AND Exact(b, true)) OR ExactManyToMany(c, d)

rule_name instance-attribute

rule_name: str

A name for the matching rule.

For example: Rule1