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

DMRS.arguments() raises a NameError #247

Closed
goodmami opened this issue Aug 14, 2019 · 0 comments
Closed

DMRS.arguments() raises a NameError #247

goodmami opened this issue Aug 14, 2019 · 0 comments

Comments

@goodmami
Copy link
Member

Calling DMRS.arguments() raises a NameError in PyDelphin v1.0.0. Unfortunately this means that DMRS-to-MRS conversion is broken. I was sure this was working recently but it is not tested so something slipped through.

>>> d = dmrs.from_mrs(m)
>>> d.arguments()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mwg/repos/pydelphin/delphin/dmrs/_dmrs.py", line 263, in arguments
    id_to_type[link.start] = node.type
NameError: name 'node' is not defined
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

1 participant