I have a few questions regarding the nltk.tree.Tree and the Conll
corpus reader nltk.corpus.reader.conll, any answer or pointer is
greatly appreciated.
- nltk.tree.Tree class has a treeposition_spanning_leaves() method to
translate a range into a tree position, e.g.
tree.treeposition_spanning_leaves(1,2)
> (0, 0, 1, 0, 0)
Is there a reverse function of that? ie. given the tree position, find
the range?
- nltk.corpus.reader.conll seems to offer no way to access the Named
Entity column in the corpus?
Thanks and regards,
Liu Chang