lm_polygraph.stat_calculators.semantic_matrix module

class lm_polygraph.stat_calculators.semantic_matrix.SemanticMatrixCalculator(nli_model)[source]

Bases: StatCalculator

Calculates the NLI semantic matrix for generation samples using DeBERTa model.

static meta_info() Tuple[List[str], List[str]][source]

Returns the statistics and dependencies for the calculator.