lm_polygraph.estimators.num_sem_sets module
- class lm_polygraph.estimators.num_sem_sets.NumSemSets(verbose: bool = False)[source]
Bases:
EstimatorEstimates the sequence-level uncertainty of a language model following the method of “Number of Semantic Sets” as provided in the paper https://arxiv.org/abs/2305.19187. Works with both whitebox and blackbox models (initialized using lm_polygraph.utils.model.BlackboxModel/WhiteboxModel).