nltk.ImmutableProbabilisticTree.set_prob

ImmutableProbabilisticTree.set_prob(prob)

Set the probability associated with this object to prob.

Parameters:prob (float) – The new probability