lm_polygraph.stat_calculators.semantic_classes module

class lm_polygraph.stat_calculators.semantic_classes.SemanticClassesCalculator[source]

Bases: StatCalculator

Paritions samples into semantic classes based on semantic matrix.

get_classes(hyps_list: List[List[str]])[source]
static meta_info() Tuple[List[str], List[str]][source]

Returns the statistics and dependencies for the calculator.