summaryrefslogtreecommitdiff
path: root/examples/extmini/compsyntax.gfs
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2012-08-24 06:30:10 +0000
committeraarne <aarne@chalmers.se>2012-08-24 06:30:10 +0000
commit2b77d3e0b05d59c9e7c5a9d50b3a850ddeed82dd (patch)
treecb40c4fda2f40d68d3ae1b16c0eae10bd7d67279 /examples/extmini/compsyntax.gfs
parent57b260508c2fac00c15843003154d1cdf0ad083b (diff)
extended mini resource grammar in examples, with Eng, Ita, Cmn (Mandarin Chinese by Jolene)
Diffstat (limited to 'examples/extmini/compsyntax.gfs')
-rw-r--r--examples/extmini/compsyntax.gfs14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/extmini/compsyntax.gfs b/examples/extmini/compsyntax.gfs
new file mode 100644
index 000000000..8ac7c59eb
--- /dev/null
+++ b/examples/extmini/compsyntax.gfs
@@ -0,0 +1,14 @@
+-- assumes start by: gf -run LangXXX.gf <compsyntax.gfs
+write_file -file=compsyntax-test.txt "***Missing***"
+print_grammar -missing | write_file -append -file=compsyntax-test.txt
+write_file -append -file=compsyntax-test.txt "***Words***"
+print_grammar -words | write_file -append -file=compsyntax-test.txt
+write_file -append -file=compsyntax-test.txt "***Noun Phrases***"
+generate_random -number=20 -cat=NP | l -table -treebank | write_file -append -file=compsyntax-test.txt
+write_file -append -file=compsyntax-test.txt "***Clauses***"
+generate_random -number=10 -cat=Cl -depth=2 | l -table -treebank | write_file -append -file=compsyntax-test.txt
+write_file -append -file=compsyntax-test.txt "***Question Clauses***"
+generate_random -number=10 -cat=QCl -depth=2 | l -table -treebank | write_file -append -file=compsyntax-test.txt
+import LangEng.gf
+write_file -append -file=compsyntax-test.txt "***Utterances***"
+generate_random -number=100 | linearize -treebank | write_file -append -file=compsyntax-test.txt