-
Notifications
You must be signed in to change notification settings - Fork 26
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
processing :: in the meta-data #145
Comments
This part of parsing is separate from that of parsing the PENMAN notation and I don't have any real grammar defined, so there is likely room for improvement: Lines 87 to 99 in 1f52cbc
What I'm hearing is that you think While I'd agree that it's unfortunate that |
Hi, |
Does it possible to escaped the For example, if
But this also means more work to unescaping strings before further processing. Having a single |
I have just found an indirect hint in the AMR 3.0 documentation that
In the LDC data
If we read the documentation strictly, then there are at least three comment lines with, one of which only contains |
@bact Keep in mind that we are not proposing a new format, but working with an existing one. And escaping the @jheinecke Thanks for digging up that reference. While it doesn't give explicit parsing instructions, it does hint at the expected format. I'm thinking of passing some configurable that indicates which metadata keys are full-line (to help with both parsing and formatting). I'd like to put this information in the AMR model instead of built-in to the parser, but currently the code is not set up to handle that, so some more changes would be needed. |
AMR files usually start with an id and the sentence before the actual PENMAN graph comes
the penman lib parses this without any problem and provides it in the
metadata
dictionary. Multiple ::keys are parsed correctlyHowever I cam across sentences which contain
::
unfortunately penman-lib cuts the sentence at the
::
and creates a metadata-entry with a space as key.For other comment lines having mulitple keys is OK, but for the line containing
::snt
is forbids having sentences with::
. Could this be changed?The text was updated successfully, but these errors were encountered: