nltk.ProbabilisticMixIn.set_logprob

ProbabilisticMixIn.set_logprob(logprob)[source]

Set the log probability associated with this object to logprob. I.e., set the probability associated with this object to 2**(logprob).

Parameters:logprob (float) – The new log probability