nltk.ImmutableProbabilisticTree.freeze

ImmutableProbabilisticTree.freeze(leaf_freezer=None)