nltk.ImmutableTree.set_label

ImmutableTree.set_label(value)[source]

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