Skip to content

Commit

Permalink
Merge pull request #136 from goodmami/fix-122-reifications
Browse files Browse the repository at this point in the history
Update reifications :accompanier, :example, and :poss
  • Loading branch information
goodmami authored Nov 15, 2023
2 parents 832caf7 + bf6e8d4 commit 9f5ccad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions penman/models/amr.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
#: e.g., to be modified or focused.
reifications = [
# role concept source target
(":accompanier", "accompany-01", ":ARG0", ":ARG1"),
(":accompanier", "accompany-01", ":ARG1", ":ARG0"),
(":age", "age-01", ":ARG1", ":ARG2"),
(":beneficiary", "benefit-01", ":ARG0", ":ARG1"),
(":beneficiary", "receive-01", ":ARG2", ":ARG0"),
Expand All @@ -128,7 +128,7 @@
(":destination", "be-destined-for-91", ":ARG1", ":ARG2"),
(":duration", "last-01", ":ARG1", ":ARG2"),
(":employed-by", "have-org-role-91", ":ARG0", ":ARG1"),
(":example", "exemplify-01", ":ARG0", ":ARG1"),
(":example", "exemplify-01", ":ARG1", ":ARG0"),
(":extent", "have-extent-91", ":ARG1", ":ARG2"),
(":frequency", "have-frequency-91", ":ARG1", ":ARG2"),
(":instrument", "have-instrument-91", ":ARG1", ":ARG2"),
Expand All @@ -141,8 +141,8 @@
(":ord", "have-ord-91", ":ARG1", ":ARG2"),
(":part", "have-part-91", ":ARG1", ":ARG2"),
(":polarity", "have-polarity-91", ":ARG1", ":ARG2"),
(":poss", "own-01", ":ARG0", ":ARG1"),
(":poss", "have-03", ":ARG0", ":ARG1"),
(":poss", "own-01", ":ARG1", ":ARG0"),
(":poss", "have-03", ":ARG1", ":ARG0"),
(":purpose", "have-purpose-91", ":ARG1", ":ARG2"),
(":role", "have-org-role-91", ":ARG0", ":ARG2"),
(":source", "be-from-91", ":ARG1", ":ARG2"),
Expand Down
4 changes: 2 additions & 2 deletions tests/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def test_dereify_edges_amr_codec():
:ARG1-of (b / beta
:ARG0 p)
:ARG1-of (g / gamma
:ARG0-of (_ / own-01
:ARG1 (p / pi))))'''))
:ARG1-of (_ / own-01
:ARG0 (p / pi))))'''))
assert form(g) == (
'(a / alpha :ARG1-of (b / beta :ARG0 p)'
' :ARG1-of (g / gamma :poss (p / pi)))')
Expand Down

0 comments on commit 9f5ccad

Please sign in to comment.