lm_polygraph.stat_calculators.greedy_lm_probs module

class lm_polygraph.stat_calculators.greedy_lm_probs.GreedyLMProbsCalculator[source]

Bases: StatCalculator

Calculates probabilities of the model generations without input texts. Used to calculate P(y_t|y_<t) subtrahend in PointwiseMutualInformation.

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

Returns the statistics and dependencies for the calculator.