Skip to content

Commit

Permalink
zszs
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghoun committed Apr 6, 2015
1 parent a80b614 commit 6784943
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mrs.tdl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ h := p.

e := i &
[ TENSE tense, ASPECT aspect, MOOD mood,
PERF luk, PROG luk, SF sforce ].
PERF luk, PROG luk ].

x := i & p &
[ PERS person, NUM number,
Expand Down Expand Up @@ -100,10 +100,12 @@ na := luk.
- := bool.

sforce := top.
prop := sforce.
ques := sforce.
prop-or-ques := sforce.
prop := prop-or-ques.
ques := prop-or-ques.
comm := sforce.


person := top.
1-or-2 := person.
1-or-3 := person.
Expand All @@ -121,6 +123,7 @@ sg := number.
pl := number.
no_number := number.


gender := top.
m-or-f := gender.
m-or-n := gender.
Expand Down
2 changes: 2 additions & 0 deletions predicates.tdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
;;; interlingual relation types, valid for all language pair (we think :-)
;;;

intensifier_x_rel := predsort.

message_m_rel := predsort.
imp_m_rel := message_m_rel.
prop-or-ques_m_rel := message_m_rel.
Expand Down
21 changes: 21 additions & 0 deletions zszs/ace/config.tdl
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.
11 changes: 11 additions & 0 deletions zszs/ace/top.tdl
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.
31 changes: 31 additions & 0 deletions zszs/in.vpm
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
E.ASPECT : ASPECT
* >> *

PNG.PERNUM : PERS NUM
sg >> ! sg
pl >> ! pl
1st >> 1 !
2nd >> 2 !
3rd >> 3 !
1sg >> 1 sg
2sg >> 2 sg
3sg >> 3 sg
1pl >> 1 pl
2pl >> 2 pl
3pl >> 3 pl

PNG.GENDER : GEND
* >> *

PNG.ANIMACY : ANIMACY
* >> *

SPECI : SPECI
* >> *

COG-ST : COG-ST
* >> *

SF : SF
* >> *

32 changes: 32 additions & 0 deletions zszs/out.vpm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
ASPECT : E.ASPECT
* >> *

PERS NUM : PNG.PERNUM
! sg >> sg
! pl >> pl
1 ! >> 1st
2 ! >> 2nd
3 ! >> 3rd
sg 1 >> 1sg
2 sg >> 2sg
3 sg >> 3sg
1 pl >> 1pl
2 pl >> 2pl
3 pl >> 3pl
* * >> pernum

GEND : PNG.GENDER
* >> *

ANIMACY : PNG.ANIMACY
* >> *

SPECI : SPECI
* >> *

COG-ST : COG-ST
* >> *

SF : SF
* >> *

11 changes: 11 additions & 0 deletions zszs/test.mtr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
intensifier_rule_1 := monotonic_mtr &
[ INPUT.RELS < [ PRED "redup_x_rel" ] >,
OUTPUT.RELS < +copy+ & [ PRED intensifier_x_rel ] > ].

intensifier_rule_2 := monotonic_mtr &
[ INPUT.RELS < [ PRED "_hen_x_rel" ] >,
OUTPUT.RELS < +copy+ & [ PRED intensifier_x_rel ] > ].

intensifier_rule_3 := monotonic_mtr &
[ INPUT.RELS < [ PRED "_feichang_x_rel" ] >,
OUTPUT.RELS < +copy+ & [ PRED intensifier_x_rel ] > ].
14 changes: 14 additions & 0 deletions zszs/types.tdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
semsort := u.
tense := top.
present := tense.
prop-or-ques := sforce.

animacy := top.
human := animacy.
non-human := animacy.
animate := non-human.
inanimate := non-human.

i :+ [ SORT semsort, SF sforce ].
x :+ [ GENDER gender, ANIMACY animacy, SPECI bool, COG-ST cog-st ].

0 comments on commit 6784943

Please sign in to comment.