Bug in conll.py
amralaa-MSFT opened this issue · 1 comments
amralaa-MSFT commented
On line 211, conll.py script makes a call to DependencyTree.add_node passing 2 positional arguments. However, the documentation specifies that it accepts only 1 argument. I couldn't get this script to work using networkx v2.3 nor v2.5
# conll.py
T.add_edge(new_index_dict[h],new_index_dict[d],deprel=self[h][d]["deprel"])
[ins] In [3]: T.add_node?
Signature: T.add_node(node_for_adding, **attr)
Docstring:
Add a single node `node_for_adding` and update node attributes.
Parameters
----------
node_for_adding : node
A node can be any hashable Python object except None.
attr : keyword arguments, optional
Set or change node attributes using key=value.
melvinjosej commented
@JunjieHu could you please take a look at this issue?