A container for the nodes and labelled edges of a dependency
structure.
|
__init__(self)
We place a dummy 'top' node in the first position in the nodelist,
since the root node is often assigned '0' as its head. |
source code
|
|
|
|
|
|
|
_normalize(self,
line)
Deal with lines in which spaces are used rather than tabs. |
source code
|
|
|
|
|
|
|
_deptree(self,
i)
Recursive function for turning dependency graphs into NLTK trees. |
source code
|
|
|
deptree(self)
Starting with the root node, build a dependency tree
using the NLTK Tree constructor. |
source code
|
|
|
|
|
|
XDigraph
|
nx_graph(self)
Convert the data in a nodelist into a networkx labeled
directed graph. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|