nltk.ImmutableProbabilisticTree.set_logprob

ImmutableProbabilisticTree.set_logprob(logprob)

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