SemanticCondition

Semantic condition

Subclass of Condition.

Module: implementation.conditions.semantic

Methods and properties

Main methods and properties


__init__

Arguments:

  • distance (float): Distance thresholde.

  • targets (List[str]): Comparison targets.

  • subject_key (str): Key associated with source of subjects to match. Source should be a list of strings.

  • semantic_schema (Optional[SemanticSearchSchema], optional): Schema that will be used for distance evaluation. If equals to None, default SemanticSearchSchema will be used. Defaults to None.

  • name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.



Last updated