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

Support for ~e.2 etc. #17

Open
cparjaszewski opened this issue Nov 15, 2018 · 3 comments
Open

Support for ~e.2 etc. #17

cparjaszewski opened this issue Nov 15, 2018 · 3 comments

Comments

@cparjaszewski
Copy link

cparjaszewski commented Nov 15, 2018

Hello,

I've the following AMR format, but it raises a warning and error:

# ::tok Hallmark could make a fortune off of this guy .
# ::alignments 0-1.1.1.2.1 1-1 2-1.1 4-1.1.2 6-1.1.2.1.r 7-1.1.2.1.1 8-1.1.2.1
(p / possible-01~e.1 
      :ARG1 (m / make-05~e.2 
            :ARG0 (c / company :wiki "Hallmark_Cards" 
                  :name (n / name :op1 "Hallmark"~e.0)) 
            :ARG1 (f / fortune~e.4 
                  :source~e.6 (g / guy~e.8 
                        :mod (t / this~e.7)))))

These are the errors:

File 1 has error/warning message:
*** Line 3 - Ignoring unexpected tokens: (p / possible-01~e.1 
*** Line 4 - Ignoring unexpected token: :ARG1 
*** Line 4 - Ignoring unexpected tokens: (m / make-05~e.2 
*** Line 5 - Ignoring unexpected token: :ARG0 
*** Line 6 - Ignoring unexpected token: "Hallmark"~e.0 
*** Line 7 - Ignoring unexpected token: :ARG1 
*** Line 7 - Ignoring unexpected tokens: (f / fortune~e.4 
*** Line 8 - Ignoring unexpected token: :source~e.6 
*** Line 8 - Ignoring unexpected tokens: (g / guy~e.8 
*** Line 9 - Ignoring unexpected token: :mod 
*** Line 9 - Ignoring unexpected tokens: (t / this~e.7 
*** Line 9 - Non-matching close parenthesis. 
*** Line 9 - Non-matching close parenthesis. 
*** Line 9 - Non-matching close parenthesis. 
*** Line 9 - Non-matching close parenthesis. 
*** Line 9 - Non-matching close parenthesis. 
11 errors and 5 warnings in 9 lines. 

File 2 has error/warning message:
*** Line 3 - Ignoring unexpected tokens: (p / possible-01~e.1 
*** Line 4 - Ignoring unexpected token: :ARG1 
*** Line 4 - Ignoring unexpected tokens: (m / make-05~e.2 
*** Line 5 - Ignoring unexpected token: :ARG0 
*** Line 6 - Ignoring unexpected token: "Hallmark"~e.0 
*** Line 7 - Ignoring unexpected token: :ARG1 
*** Line 7 - Ignoring unexpected tokens: (f / fortune~e.4 
*** Line 8 - Ignoring unexpected token: :source~e.6 
*** Line 8 - Ignoring unexpected tokens: (g / guy~e.8 
*** Line 9 - Ignoring unexpected token: :mod 
*** Line 9 - Ignoring unexpected tokens: (t / this~e.7 
*** Line 9 - Non-matching close parenthesis. 
*** Line 9 - Non-matching close parenthesis. 
*** Line 9 - Non-matching close parenthesis. 
*** Line 9 - Non-matching close parenthesis. 
*** Line 9 - Non-matching close parenthesis. 
11 errors and 5 warnings in 9 lines. 

Is the AMR in the correct format? Is something missing within Smatch?

@snowblink14
Copy link
Owner

~e.x is probably not supported in smatch right now. Is there any recent AMR guideline referring to this? If so, can you send the link?

@nschneid
Copy link

This is the output of the ISI aligner. I take it that smatch expects the plain AMR, without automatic alignments to words of the sentence. (The AMR data releases include both kinds.)

@ramon-astudillo
Copy link
Contributor

Support for ISI alignments would be very welcome! as e.g. Penman does

https://penman.readthedocs.io/en/latest/api/penman.surface.html

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

4 participants