nltk.ProbabilisticTree.set_prob

ProbabilisticTree.set_prob(prob)

Set the probability associated with this object to prob.

Parameters:prob (float) – The new probability