nltk.MLEProbDist.logprob

MLEProbDist.logprob(sample)

Return the base 2 logarithm of the probability for a given sample.

Parameters:sample (any) – The sample whose probability should be returned.
Return type:float