Conll corpus reader

35 views
Skip to first unread message

liu chang

unread,
Mar 9, 2009, 11:29:12 AM3/9/09
to nltk-...@googlegroups.com
Hi,

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

Alexandre Rademaker

unread,
Oct 7, 2016, 4:42:15 AM10/7/16
to nltk-users
Does anyone answer this question? Did you solve your problem ? how?
Reply all
Reply to author
Forward
0 new messages