-
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.
Adopt document plan grammar generation to use GF operations
- Loading branch information
1 parent
ed5fed5
commit 25bb75e
Showing
22 changed files
with
199 additions
and
131 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
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 @@ | ||
members: | ||
- place | ||
- venue | ||
- arena | ||
roles: | ||
- objectRef | ||
- locationData | ||
frames: | ||
- example: There is a place in the city center, KFC | ||
syntax: | ||
- type: gf | ||
value: atLocation | ||
roles: | ||
- objectRef | ||
- locationData | ||
ret: | ||
- N | ||
- N | ||
- N |
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ includes: | |
- library/genre.yaml | ||
- other/cut.yaml | ||
- other/see.yaml | ||
- concept-net/at-location.yaml |
This file was deleted.
Oops, something went wrong.
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,3 +1,35 @@ | ||
concrete ConceptNetEng of ConceptNet = ConceptNetI with | ||
(Syntax = SyntaxEng), | ||
(LexConceptNet = LexConceptNetEng); | ||
resource ConceptNetEng = open SyntaxEng, ParadigmsEng, UtilsEng in { | ||
|
||
oper -- atLocation | ||
SS : Type = {s : Str} ; | ||
|
||
-- There is a place in the LOCATION | ||
placeInLocation : N -> N -> N -> SS = | ||
\locationDictionary,locationData,objectRef -> | ||
(mkUtt (mkThereIsAThing (mkCN locationDictionary (mkInAdv locationData)) objectRef)) ; | ||
|
||
-- In the LOCATION there is a place | ||
inLocationPlace : N -> N -> N -> SS = | ||
\locationDictionary,locationData,objectRef -> | ||
(mkUtt (mkS (mkInAdv locationData) (mkS presentSimTemp positivePol (mkThereIsAThing locationDictionary objectRef)))) ; | ||
|
||
-- VENUE in the LOCATION | ||
venueInLocation : N -> N -> N -> SS = | ||
\locationDictionary,locationData,objectRef -> | ||
(mkUtt (mkThereIsAThing objectRef (mkInAdv locationData))) ; | ||
|
||
atLocation : N -> N -> N -> SS = | ||
\lexicon,arg0,arg1 -> | ||
((placeInLocation lexicon arg0 arg1) | (inLocationPlace lexicon arg0 arg1) | (venueInLocation lexicon arg0 arg1)) ; | ||
|
||
oper -- hasProperty | ||
|
||
itHas : A -> N -> SS = | ||
\propertyName,object -> | ||
(mkS presentSimTemp positivePol (mkCl (mkNP object) propertyName)) ; | ||
|
||
hasProperty : A -> N -> SS = | ||
\lexicon,arg0 -> | ||
(mkUtt (itHas lexicon arg0)) ; | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.