Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in conll.py #59

Open
amralaa-MSFT opened this issue Jan 26, 2021 · 1 comment
Open

Bug in conll.py #59

amralaa-MSFT opened this issue Jan 26, 2021 · 1 comment

Comments

@amralaa-MSFT
Copy link

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
Copy link
Collaborator

@JunjieHu could you please take a look at this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants