uqlm.nli.entropy_utils#
Functions
|
Select the best response from the clustered responses based on the cluster probabilities |
Compute cluster probabilities |
|
|
Compute response probabilities |
|
Helper function to compute semantic entropy score from cluster probabilities |
|
Compute length normalized sequence logprob |
Normalize cluster probabilities |
|
|
Helper function to normalize semantic entropy |