Skip to content

Commit 9d1da4b

Browse files
committed
robust configuration, xie, trung-lextypes
1 parent 72fafd2 commit 9d1da4b

24 files changed

+1574
-1384
lines changed

cmn/hans/ace/config-robust.tdl

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
;;; -*- Mode: TDL; -*-
2+
;;; files to load
3+
4+
grammar-top := "../hans-pet-robust.tdl".
5+
variable-property-mapping := "../semi.vpm".
6+
preprocessor := "../repp/vanilla.rpp".
7+
;generation-ignore-signs := "generation.ignore".
8+
generation-trigger-rules := "../trigger.mtr".
9+
version := "../Version.lsp".
10+
parse-node-labels := "../labels.tdl".
11+
12+
quickcheck-code := qc.tdl.
13+
14+
;;; grammar internal properties
15+
orth-path := STEM.
16+
semantics-path := SYNSEM LOCAL CONT.
17+
lex-rels-path := SYNSEM LOCAL CONT RELS.
18+
lex-carg-path := SYNSEM LKEYS KEYREL CARG.
19+
lex-pred-path := SYNSEM LKEYS KEYREL PRED.
20+
rule-rels-path := C-CONT RELS.
21+
label-path := LABEL-NAME.
22+
23+
;;; SSH 2014-10-31: root-bridge should be used only for robust parsing.
24+
parsing-roots := root root-bridge.
25+
generation-roots := root.
26+
27+
semarg-type := semarg.
28+
handle-type := h.
29+
list-type := list.
30+
cons-type := cons.
31+
null-type := null.
32+
diff-list-type := diff-list.
33+
34+
;chart-dependencies := .
35+
36+
deleted-daughters := ARGS HEAD-DTR NON-HEAD-DTR DTR.
37+
38+
parsing-packing-restrictor := STEM RELS HCONS RNAME.
39+
40+
generation-packing-restrictor := STEM RELS HCONS RNAME.
41+
42+
mrs-deleted-roles :=
43+
IDIOMP LNK CFROM CTO --PSV WLINK PARAMS.
44+
45+
; hack for LTOP-GTOP issue
46+
invent-ltop := true.
47+
48+
ortho-max-rules := 20.
49+
50+
enable-icons := yes.
51+
mrs-icons-list := ICONS LIST.
52+
icons-left := CLAUSE.
53+
icons-right := TARGET.
54+

cmn/hans/ace/config.tdl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ lex-pred-path := SYNSEM LKEYS KEYREL PRED.
2020
rule-rels-path := C-CONT RELS.
2121
label-path := LABEL-NAME.
2222

23-
;;; SSH 2014-10-31: root-bridge should be used only for robust parsing.
24-
parsing-roots := root root-bridge.
23+
parsing-roots := root.
2524
generation-roots := root.
2625

2726
semarg-type := semarg.

cmn/hans/hans-pet-robust.tdl

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
;;; -*- Mode: TDL; Package: DISCO -*-
2+
;;;
3+
;;; $Id: pet.tdl,v 1.2 2008-05-23 01:44:21 sfd Exp $
4+
;;;
5+
6+
:begin :type.
7+
8+
;;
9+
;; type hierarchy
10+
;;
11+
12+
:include "head-types".
13+
:include "matrix".
14+
:include "trung".
15+
:include "trung-lextypes".
16+
:include "trung-letypes".
17+
:include "zhong".
18+
:include "hans".
19+
:include "mtr".
20+
21+
:end :type.
22+
23+
;;
24+
;; lexicon entries (instances of status lex-entry or generic-lex-entry)
25+
;;
26+
27+
:begin :instance :status lex-entry.
28+
:include "lexicon".
29+
:end :instance.
30+
31+
;;
32+
;; grammar rules and lexical rules (instances of status rule)
33+
;;
34+
35+
:begin :instance :status rule.
36+
:include "rules".
37+
:include "rules-robust".
38+
:end :instance.
39+
40+
:begin :instance :status lex-rule.
41+
:include "lrules".
42+
:include "irules".
43+
:end :instance.
44+
45+
;;
46+
;; parse-tree labels (instances)
47+
;;
48+
49+
:begin :instance.
50+
:include "labels".
51+
:end :instance.
52+
53+
;;
54+
;; start symbols of the grammar (instances)
55+
;;
56+
57+
:begin :instance.
58+
:include "roots".
59+
:end :instance.

cmn/hans/hans-pet-strict.tdl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
:include "head-types".
1313
:include "matrix".
1414
:include "trung".
15+
:include "trung-lextypes".
16+
:include "trung-letypes".
1517
:include "zhong".
1618
:include "hans".
1719
:include "mtr".

cmn/hans/hans-pet.tdl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
:include "head-types".
1313
:include "matrix".
1414
:include "trung".
15+
:include "trung-lextypes".
16+
:include "trung-letypes".
1517
:include "zhong".
1618
:include "hans".
1719
:include "mtr".

cmn/hans/lexicon.tdl

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,23 @@ question-marker := punctuation &
505505

506506
这_d := prox_demons-determiner-lex &
507507
[ STEM < "这" >,
508-
SYNSEM.LKEYS.KEYREL.PRED "_pronoun_n_demons_rel" ].
508+
SYNSEM [ LOCAL.CONT.HOOK.INDEX.PNG.PERNUM 3rd,
509+
LKEYS.KEYREL.PRED "_pronoun_n_demons_rel" ] ].
509510

510511
那_d := dist_demons-determiner-lex &
511512
[ STEM < "那" >,
512-
SYNSEM.LKEYS.KEYREL.PRED "_pronoun_n_demons_rel" ].
513+
SYNSEM [ LOCAL.CONT.HOOK.INDEX.PNG.PERNUM 3rd,
514+
LKEYS.KEYREL.PRED "_pronoun_n_demons_rel" ] ].
515+
516+
这些_d := prox_demons-determiner-lex &
517+
[ STEM < "这些" >,
518+
SYNSEM [ LOCAL.CONT.HOOK.INDEX.PNG.PERNUM 3pl,
519+
LKEYS.KEYREL.PRED "_pronoun_n_demons_rel" ] ].
520+
521+
那些_d := dist_demons-determiner-lex &
522+
[ STEM < "那些" >,
523+
SYNSEM [ LOCAL.CONT.HOOK.INDEX.PNG.PERNUM 3pl,
524+
LKEYS.KEYREL.PRED "_pronoun_n_demons_rel" ] ].
513525

514526
每_d := determiner-lex &
515527
[ STEM < "每" >,
@@ -525,12 +537,27 @@ question-marker := punctuation &
525537

526538
些_d := determiner-lex &
527539
[ STEM < "些" >,
528-
SYNSEM.LKEYS.KEYREL.PRED "some_q_rel" ].
540+
SYNSEM.LKEYS.KEYREL.PRED "some_q_rel" ].
529541

542+
一些_d := determiner-lex &
543+
[ STEM < "一些" >,
544+
SYNSEM [ LOCAL.CONT.HOOK.INDEX.PNG.PERNUM 3pl,
545+
LKEYS.KEYREL.PRED "some_q_rel" ] ].
546+
547+
有些_d := determiner-lex &
548+
[ STEM < "有些" >,
549+
SYNSEM [ LOCAL.CONT.HOOK.INDEX.PNG.PERNUM 3pl,
550+
LKEYS.KEYREL.PRED "some_q_rel" ] ].
530551

531552
哪_d := determiner-lex &
532553
[ STEM < "哪" >,
533-
SYNSEM.LKEYS.KEYREL.PRED "which_q_rel" ].
554+
SYNSEM [ LOCAL.CONT.HOOK.INDEX.PNG.PERNUM 3rd,
555+
LKEYS.KEYREL.PRED "which_q_rel" ] ].
556+
557+
哪些_d := determiner-lex &
558+
[ STEM < "哪些" >,
559+
SYNSEM [ LOCAL.CONT.HOOK.INDEX.PNG.PERNUM 3pl,
560+
LKEYS.KEYREL.PRED "which_q_rel" ] ].
534561

535562
什么_d := determiner-lex &
536563
[ STEM < "什么" >,

cmn/hans/lkb/script

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
(lkb-pathname (parent-directory) "matrix.tdl")
4343
(lkb-pathname (parent-directory) "head-types.tdl")
4444
(lkb-pathname (parent-directory) "trung.tdl")
45+
(lkb-pathname (parent-directory) "trung-lextypes.tdl")
46+
(lkb-pathname (parent-directory) "trung-letypes.tdl")
4547
(lkb-pathname (parent-directory) "zhong.tdl")
4648
(lkb-pathname (parent-directory) "hans.tdl")
4749
(lkb-pathname (parent-directory) "mtr.tdl")

cmn/hans/rules-robust.tdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../rules-robust.tdl

cmn/hans/trung-letypes.tdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../trung-letypes.tdl

cmn/hans/trung-lextypes.tdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../trung-lextypes.tdl

0 commit comments

Comments
 (0)