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

Single-quoted symbols in SimpleMRS are not fully read in #373

Closed
goodmami opened this issue Nov 28, 2023 · 0 comments
Closed

Single-quoted symbols in SimpleMRS are not fully read in #373

goodmami opened this issue Nov 28, 2023 · 0 comments

Comments

@goodmami
Copy link
Member

From #371 (comment)

The legacy single-quoted symbols like ('null_coord_rel) are only being parsed with a single letter:

>>> m = simplemrs.decode("[RELS: < [ 'null_coord_rel LBL: h0 ARG0: e2 ] >]")
[...]
delphin.mrs._exceptions.MRSSyntaxError: 
  line 1, character 13
    [RELS: < [ 'null_coord_rel LBL: h0 ARG0: e2 ] >]
                 ^
MRSSyntaxError: expected: a feature
>>> m = simplemrs.decode("[RELS: < [ 'n LBL: h0 ARG0: e2 ] >]")
>>> m.rels[0].predicate
'n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant