-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
3,686 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,15 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
# -*- mode: gitignore; -*- | ||
*~ | ||
\#*\# | ||
/.emacs.desktop | ||
/.emacs.desktop.lock | ||
*.elc | ||
auto-save-list | ||
tramp | ||
.\#* | ||
|
||
# C extensions | ||
*.so | ||
# Compile Grammar images | ||
*.dat | ||
*.grm | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ |
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,21 @@ | ||
transfer := yes. | ||
|
||
grammar-top := "top.tdl". | ||
|
||
input-vpm := "../in.vpm". | ||
output-vpm := "../out.vpm". | ||
|
||
top-type := top. | ||
semarg-type := u. | ||
list-type := list. | ||
cons-type := cons. | ||
null-type := null. | ||
diff-list-type := diff-list. | ||
|
||
mrs-rels-list := RELS. | ||
mrs-hcons-list := HCONS. | ||
|
||
invent-ltop := no. | ||
hook-path := . | ||
|
||
enable-icons := yes. |
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,11 @@ | ||
:begin :type. | ||
:include "../../mrs.tdl". | ||
:include "../../mtr.tdl". | ||
:include "../../predicates.tdl". | ||
:include "../../predicates.erg.tdl". | ||
:include "../types.tdl". | ||
:end :type. | ||
|
||
:begin :instance :status rule. | ||
:include "../test.mtr". | ||
:end :instance. |
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,16 @@ | ||
E.TENSE : TENSE | ||
* >> * | ||
|
||
PNG.NUM : NUM | ||
* >> * | ||
|
||
;PERSON : PERSON | ||
; * >> * | ||
|
||
;NUMBER : NUMBER | ||
; * >> * | ||
|
||
;GENDER : GENDER | ||
; * >> * | ||
|
||
|
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,7 @@ | ||
[ LTOP: h0 | ||
INDEX: e1 [ e SORT: semsort SF: prop-or-ques E.TENSE: present ] | ||
RELS: < [ "exist_q_rel"<-1:-1> LBL: h3 ARG0: x2 [ x SORT: semsort PERSON: 3rd NUMBER: sg GENDER: gender ] RSTR: h4 BODY: h5 ] | ||
[ "_dog_n_rel"<-1:-1> LBL: h6 ARG0: x2 ] | ||
[ "_bark_v_rel"<-1:-1> LBL: h7 ARG0: e1 ARG1: x2 ] > | ||
HCONS: < h4 qeq h6 > | ||
ICONS: < e1 focus x2 e1 info-str e1 > ] |
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,17 @@ | ||
TENSE : E.TENSE | ||
* >> * | ||
|
||
NUM : PNG.NUM | ||
* >> * | ||
|
||
;PERSON : PERSON | ||
; * >> * | ||
|
||
;NUMBER : NUMBER | ||
; * >> * | ||
|
||
;GENDER : GENDER | ||
; * >> * | ||
|
||
PNG : PNG | ||
* >> * |
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,11 @@ | ||
;cat_tmp_rule := monotonic_mtr & | ||
;[ INPUT.RELS < [ PRED "_cat_n_rel" ] >, | ||
; OUTPUT.RELS < +copy+ & [ PRED "_tmp_n_rel" ] > ]. | ||
|
||
;dog_cat_rule := monotonic_mtr & | ||
;[ INPUT.RELS < [ PRED "_dog_n_rel" ] >, | ||
; OUTPUT.RELS < +copy+ & [ PRED "_cat_n_rel" ] > ]. | ||
|
||
;tmp_dog_rule := monotonic_mtr & | ||
;[ INPUT.RELS < [ PRED "_tmp_n_rel" ] >, | ||
; OUTPUT.RELS < +copy+ & [ PRED "_dog_n_rel" ] > ]. |
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,7 @@ | ||
semsort := u. | ||
tense := top. | ||
present := tense. | ||
prop-or-ques := sforce. | ||
i :+ [ SORT semsort, PERSON person, NUMBER number ]. | ||
3rd := person. | ||
x :+ [ GENDER gender ]. |
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,21 @@ | ||
transfer := yes. | ||
|
||
grammar-top := "top.tdl". | ||
|
||
input-vpm := "../in.vpm". | ||
output-vpm := "../out.vpm". | ||
|
||
top-type := top. | ||
semarg-type := u. | ||
list-type := list. | ||
cons-type := cons. | ||
null-type := null. | ||
diff-list-type := diff-list. | ||
|
||
mrs-rels-list := RELS. | ||
mrs-hcons-list := HCONS. | ||
|
||
invent-ltop := no. | ||
hook-path := . | ||
|
||
enable-icons := yes. |
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,11 @@ | ||
:begin :type. | ||
:include "../../mrs.tdl". | ||
:include "../../mtr.tdl". | ||
:include "../../predicates.tdl". | ||
:include "../../predicates.erg.tdl". | ||
:include "../types.tdl". | ||
:end :type. | ||
|
||
:begin :instance :status rule. | ||
:include "../test.mtr". | ||
:end :instance. |
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,17 @@ | ||
PERS : PERS | ||
* >> * | ||
|
||
NUM : NUM | ||
* >> * | ||
|
||
SF : SF | ||
* >> * | ||
|
||
TENSE : TENSE | ||
* >> * | ||
|
||
SPECI : SPECI | ||
* >> * | ||
|
||
COG-ST : COG-ST | ||
* >> * |
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,9 @@ | ||
SF : SF | ||
prop >> prop-or-ques | ||
|
||
TENSE : ASPECT | ||
past >> perf | ||
|
||
PERS NUM : PNG.PERNUM | ||
* * >> pernum | ||
|
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,12 @@ | ||
bark_mtr := monotonic_mtr & | ||
[ INPUT.RELS < [ PRED "_bark_v_1_rel" ] >, | ||
OUTPUT.RELS < +copy+ & [ PRED "_menggonggong_v_rel" ] > ]. | ||
|
||
dog_mtr := monotonic_mtr & | ||
[ INPUT.RELS < [ PRED "_dog_n_1_rel" ] >, | ||
OUTPUT.RELS < +copy+ & [ PRED "_anjing_n_rel" ] > ]. | ||
|
||
udef_mtr := monotonic_mtr & | ||
[ INPUT.RELS < [ PRED _the_q_rel ] >, | ||
OUTPUT.RELS < [ PRED "exist_q_rel" ] > ]. | ||
|
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,7 @@ | ||
semsort := u. | ||
tense := top. | ||
present := tense. | ||
prop-or-ques := sforce. | ||
i :+ [ SORT semsort, PERSON person, NUMBER number ]. | ||
3rd := person. | ||
x :+ [ GENDER gender ]. |
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,21 @@ | ||
transfer := yes. | ||
|
||
grammar-top := "top.tdl". | ||
|
||
input-vpm := "../in.vpm". | ||
output-vpm := "../out.vpm". | ||
|
||
top-type := top. | ||
semarg-type := u. | ||
list-type := list. | ||
cons-type := cons. | ||
null-type := null. | ||
diff-list-type := diff-list. | ||
|
||
mrs-rels-list := RELS. | ||
mrs-hcons-list := HCONS. | ||
|
||
invent-ltop := no. | ||
hook-path := . | ||
|
||
enable-icons := yes. |
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,11 @@ | ||
:begin :type. | ||
:include "../../mrs.tdl". | ||
:include "../../mtr.tdl". | ||
:include "../../predicates.tdl". | ||
:include "../../predicates.erg.tdl". | ||
:include "../types.tdl". | ||
:end :type. | ||
|
||
:begin :instance :status rule. | ||
:include "../test.mtr". | ||
:end :instance. |
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,5 @@ | ||
E.ASPECT : TENSE | ||
perfective >> past | ||
|
||
PNG.PERNUM : PERS | ||
* >> 3 |
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,6 @@ | ||
TENSE : TENSE | ||
* >> * | ||
|
||
PERS : PERS | ||
* >> * | ||
|
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,12 @@ | ||
bark_mtr := monotonic_mtr & | ||
[ INPUT.RELS < [ PRED "_jiao4_v_1_rel" ] >, | ||
OUTPUT.RELS < +copy+ & [ PRED "_hoeru_v_1_rel" ] > ]. | ||
|
||
dog_mtr := monotonic_mtr & | ||
[ INPUT.RELS < [ PRED "_gou3_n_rel" ] >, | ||
OUTPUT.RELS < +copy+ & [ PRED "_inu_n_rel" ] > ]. | ||
|
||
udef_mtr := monotonic_mtr & | ||
[ INPUT.RELS < [ PRED "exist_q_rel" ] >, | ||
OUTPUT.RELS < [ PRED udef_q_rel ] > ]. | ||
|
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,7 @@ | ||
semsort := u. | ||
tense := top. | ||
present := tense. | ||
prop-or-ques := sforce. | ||
i :+ [ SORT semsort, PERSON person, NUMBER number ]. | ||
3rd := person. | ||
x :+ [ GENDER gender ]. |
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,21 @@ | ||
transfer := yes. | ||
|
||
grammar-top := "top.tdl". | ||
|
||
input-vpm := "../in.vpm". | ||
output-vpm := "../out.vpm". | ||
|
||
top-type := top. | ||
semarg-type := u. | ||
list-type := list. | ||
cons-type := cons. | ||
null-type := null. | ||
diff-list-type := diff-list. | ||
|
||
mrs-rels-list := RELS. | ||
mrs-hcons-list := HCONS. | ||
|
||
invent-ltop := no. | ||
hook-path := . | ||
|
||
enable-icons := yes. |
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,11 @@ | ||
:begin :type. | ||
:include "../../mrs.tdl". | ||
:include "../../mtr.tdl". | ||
:include "../../predicates.tdl". | ||
:include "../../predicates.erg.tdl". | ||
:include "../types.tdl". | ||
:end :type. | ||
|
||
:begin :instance :status rule. | ||
:include "../test.mtr". | ||
:end :instance. |
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,5 @@ | ||
ASPECT : TENSE | ||
perf >> past | ||
|
||
PNG.PERNUM : PERS NUM | ||
* >> 3 sg |
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,9 @@ | ||
TENSE : TENSE | ||
* >> * | ||
|
||
PERS : PERS | ||
* >> * | ||
|
||
NUM : NUM | ||
* >> * | ||
|
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,12 @@ | ||
bark_mtr := monotonic_mtr & | ||
[ INPUT.RELS < [ PRED "_menggonggong_v_rel" ] >, | ||
OUTPUT.RELS < +copy+ & [ PRED "_bark_v_1_rel" ] > ]. | ||
|
||
dog_mtr := monotonic_mtr & | ||
[ INPUT.RELS < [ PRED "_anjing_n_rel" ] >, | ||
OUTPUT.RELS < +copy+ & [ PRED "_dog_n_1_rel" ] > ]. | ||
|
||
udef_mtr := monotonic_mtr & | ||
[ INPUT.RELS < [ PRED "exist_q_rel" ] >, | ||
OUTPUT.RELS < [ PRED _the_q_rel ] > ]. | ||
|
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,7 @@ | ||
semsort := u. | ||
tense := top. | ||
present := tense. | ||
prop-or-ques := sforce. | ||
i :+ [ SORT semsort, PERSON person, NUMBER number ]. | ||
3rd := person. | ||
x :+ [ GENDER gender ]. |
Oops, something went wrong.