nltk.ImmutableProbabilisticTree.set_label

ImmutableProbabilisticTree.set_label(value)

Set the node label. This will only succeed the first time the node label is set, which should occur in ImmutableTree.__init__().