-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add yaml parsing result test * refactor: add support for gf functions in grammar build * refactor: generator support for gf type * refactor: specify roles in amr type gf syntax
- Loading branch information
1 parent
fb71269
commit dea5438
Showing
7 changed files
with
86 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{:type "Document-plan" | ||
:segments [{:children [{:roles [{:children [{:type "Quote" | ||
:srcId "uf:[gtVTc!uQe%WeEy${" | ||
:text "Alimentum"}] | ||
:name "name"} | ||
{:children [{:type "Quote" | ||
:srcId "#UU2hr35[NTazfg6d7JV" | ||
:text "city centre"}] | ||
:name "location"}] | ||
:dictionaryItem {:name "at-location" | ||
:type "Dictionary-item" | ||
:srcId "5SgtK-{hj)?WV7+(Y=o." | ||
:itemId "at-location"} | ||
:type "AMR" | ||
:srcId "Bu~!.wu`aau*X?Kca^2B" | ||
:conceptId "at-location"}] | ||
:type "Segment" | ||
:srcId "5h957b7[5;yOW^=~2x[A"}] | ||
:srcId "CJ*//Sz(JnX?Kt).0!j/"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#:acc-text.nlg.semantic-graph{:relations [{:from :01 :to :02 :role :segment} | ||
{:from :02 :to :03 :role :instance} | ||
{:from :03 :to :04 :role :function} | ||
{:from :03 :to :05 :role :ARG0 :attributes {:name "name"}} | ||
{:from :03 :to :06 :role :ARG1 :attributes {:name "location"}}] | ||
:concepts [{:id :01 :type :document-plan} | ||
{:id :02 :type :segment} | ||
{:id :03 :type :amr :value "at-location"} | ||
{:id :04 | ||
:type :dictionary-item | ||
:value "at-location" | ||
:attributes {:name "at-location"}} | ||
{:id :05 :type :quote :value "Alimentum"} | ||
{:id :06 :type :quote :value "city centre"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
members: | ||
- place | ||
roles: | ||
- address | ||
- name | ||
- location | ||
frames: | ||
- example: There is a place in the city center | ||
syntax: | ||
- pos: LEX | ||
value: "There" | ||
- pos: AUX | ||
- pos: DET | ||
- pos: NP | ||
value: "place" | ||
- pos: ADP | ||
value: "in" | ||
- pos: DET | ||
- pos: NP | ||
role: address | ||
- type: gf | ||
value: AtLocation | ||
roles: | ||
- name | ||
- location |