nltk.ImmutableProbabilisticTree.treeposition_spanning_leaves

ImmutableProbabilisticTree.treeposition_spanning_leaves(start, end)
Returns:The tree position of the lowest descendant of this tree that dominates self.leaves()[start:end].
Raises:ValueError – if end <= start