nltk.ProbDistI.logprob

ProbDistI.logprob(sample)[source]

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