From 678494376f6128df014cfcd5f1c5e616cde42be1 Mon Sep 17 00:00:00 2001 From: sanghoun Date: Mon, 6 Apr 2015 10:54:32 +0800 Subject: [PATCH] zszs --- mrs.tdl | 9 ++++++--- predicates.tdl | 2 ++ zszs/ace/config.tdl | 21 +++++++++++++++++++++ zszs/ace/top.tdl | 11 +++++++++++ zszs/in.vpm | 31 +++++++++++++++++++++++++++++++ zszs/out.vpm | 32 ++++++++++++++++++++++++++++++++ zszs/test.mtr | 11 +++++++++++ zszs/types.tdl | 14 ++++++++++++++ 8 files changed, 128 insertions(+), 3 deletions(-) create mode 100644 zszs/ace/config.tdl create mode 100644 zszs/ace/top.tdl create mode 100644 zszs/in.vpm create mode 100644 zszs/out.vpm create mode 100644 zszs/test.mtr create mode 100644 zszs/types.tdl diff --git a/mrs.tdl b/mrs.tdl index 1b5256d..e124ee0 100644 --- a/mrs.tdl +++ b/mrs.tdl @@ -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, @@ -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. @@ -121,6 +123,7 @@ sg := number. pl := number. no_number := number. + gender := top. m-or-f := gender. m-or-n := gender. diff --git a/predicates.tdl b/predicates.tdl index 23bc9fc..8af3c04 100644 --- a/predicates.tdl +++ b/predicates.tdl @@ -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. diff --git a/zszs/ace/config.tdl b/zszs/ace/config.tdl new file mode 100644 index 0000000..06f5ee9 --- /dev/null +++ b/zszs/ace/config.tdl @@ -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. diff --git a/zszs/ace/top.tdl b/zszs/ace/top.tdl new file mode 100644 index 0000000..9be9a79 --- /dev/null +++ b/zszs/ace/top.tdl @@ -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. diff --git a/zszs/in.vpm b/zszs/in.vpm new file mode 100644 index 0000000..2f32c13 --- /dev/null +++ b/zszs/in.vpm @@ -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 + * >> * + diff --git a/zszs/out.vpm b/zszs/out.vpm new file mode 100644 index 0000000..585924f --- /dev/null +++ b/zszs/out.vpm @@ -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 + * >> * + diff --git a/zszs/test.mtr b/zszs/test.mtr new file mode 100644 index 0000000..9b8721a --- /dev/null +++ b/zszs/test.mtr @@ -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 ] > ]. diff --git a/zszs/types.tdl b/zszs/types.tdl new file mode 100644 index 0000000..85e84ae --- /dev/null +++ b/zszs/types.tdl @@ -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 ]. +