diff options
| author | aarne <aarne@chalmers.se> | 2010-04-20 09:28:24 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2010-04-20 09:28:24 +0000 |
| commit | 66ab9700f64ffe861f8b9cb271710c0c35345401 (patch) | |
| tree | b93269f179eb681d5a6a4eb7a8840f591e6c2ee2 /examples | |
| parent | d1088d12bc6649522f01eca741146a4ab99f5db2 (diff) | |
example of example-based grammar writing
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/animals/Koe.gfe | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/animals/Koe.gfe b/examples/animals/Koe.gfe new file mode 100644 index 000000000..4bd169600 --- /dev/null +++ b/examples/animals/Koe.gfe @@ -0,0 +1,15 @@ +-- to compile: echo "eb -file=QuestionsI.gfe" | gf $GF_LIB_PATH/present/LangEng.gfo +-- or use directly gf <mkAnimals.gfs + +incomplete concrete QuestionsI of Questions = open Lang in { + lincat + Phrase = Utt ; + Entity = N ; + Action = V2 ; + + lin + Who love_V2 man_N = %ex Utt "who loves men" ; + Whom man_N love_V2 = %ex Utt "whom does the man love and chase" ; + Answer woman_N love_V2 man_N = %ex Utt "the woman loves and chases men" ; + +} |
