Skip to content

Commit 75eb879

Browse files
committed
implementation for relative clauses, DE nominalization, etc
1 parent 264e08f commit 75eb879

File tree

9 files changed

+73
-41
lines changed

9 files changed

+73
-41
lines changed

lrules.tdl renamed to cmn/lrules.tdl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ pred-adj-asp-lex-rule := attr-to-pred-adj-aspect-lex-rule.
55
vp-ellipsis-lex-rule := vp-aux-ellipsis-lex-rule.
66

77
;; SSH 2014-09-04
8+
#|
89
non-aspect-lex := aspect-lex-rule &
910
[ SYNSEM.LOCAL [ CAT.MC +,
1011
CONT.HOOK.INDEX.E.ASPECT non-aspect ] ].
12+
|#
1113

cmn/zhs/irules.tdl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
;;; -*- Mode: TDL; Coding: utf-8 -*-
22

33

4-
no-spr-cl-lex := no-spr-classifier-lex-rule.
5-
64
;; SSH 2015-04-30: reduplication of verbs
75
;; e.g. 张三 哭哭 / 张三 喜欢喜欢
86
;; This lexical rule places [ASPECT tentative] to the verb itself.

cmn/zhs/lrules.tdl

Lines changed: 0 additions & 1 deletion
This file was deleted.

rules.tdl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
;;; -*- Mode: TDL; Coding: utf-8 -*-
22

3-
head-comp := head-comp-phrase.
3+
hdvj-comp := hdvj-comp-phrase.
4+
5+
head-comp := hdnrpdmo-comp-phrase.
46

57
;; SSH 2015-04-21: The subject cannot be indefinite.
68
;;subj-head := subj-head-phrase & [ STYLE robust ].

semi.vpm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ E.ASPECT : E.ASPECT
7575
delimitative <> delimitative
7676
durative <> durative
7777
non-aspect <> non-aspect
78+
aspect >> non-aspect
7879
* <> *
7980

8081
;E.MOOD : E.MOOD

yue/irules.tdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
;;; created by Sanghoun Song (SSH, 2014-08-25)
44

5-
no-cl-lex := no-classifier-lex-rule.
5+
66

77

yue/lrules.tdl

Lines changed: 0 additions & 1 deletion
This file was deleted.

yue/lrules.tdl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
;;; -*- Mode: TDL; Coding: utf-8 -*-
2+
3+
pred-adj-lex-rule := attr-to-pred-adj-lex-rule.
4+
pred-adj-asp-lex-rule := attr-to-pred-adj-aspect-lex-rule.
5+
vp-ellipsis-lex-rule := vp-aux-ellipsis-lex-rule.
6+
7+
;;只 猫 走 了
8+
no-spr-cl-lex := no-spr-classifier-lex-rule.
9+
no-cl-lex := no-classifier-lex-rule.
10+
11+
;; SSH 2014-09-04
12+
#|
13+
non-aspect-lex := aspect-lex-rule &
14+
[ SYNSEM.LOCAL [ CAT.MC +,
15+
CONT.HOOK.INDEX.E.ASPECT non-aspect ] ].
16+
|#
17+

zhong-lextypes.tdl

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ head :+
284284

285285
verb-lex := lex-item &
286286
[ SYNSEM [ PAREN -,
287-
ASPECTED na,
288287
LOCAL.CAT.HEAD verb & [ PRED-KEY #pred ],
289288
LKEYS.KEYREL.PRED #pred ] ].
289+
;ASPECTED na,
290290

291291
main-verb-lex := verb-lex & basic-verb-lex & tentative-lex-dtr &
292292
[ SYNSEM.LOCAL [ CAT [ HEAD.AUX -,
@@ -343,7 +343,7 @@ transitive-verb-lex := main-verb-lex & transitive-lex-item & aspect-rule-dtr &
343343
ARG-ST < [ LOCAL [ CAT.HEAD noun,
344344
CONT.HOOK.INDEX #index ] ],
345345
#comp &
346-
[ LOCAL.CAT [ VAL [ SPR < >,
346+
[ LOCAL.CAT [ VAL [ SPR 0-1-list,
347347
COMPS < > ],
348348
HEAD noun ] ] > ].
349349

@@ -464,18 +464,19 @@ pp-s-comp-verb-lex := main-verb-lex & basic-three-arg-no-hcons & basic-icons-lex
464464
CONT.HOOK.LTOP #ltop],
465465
OPT -]> ].
466466

467+
;;2016-2-16 ZZF OPT + testing
467468
super-ditrans-verb-lex := main-verb-lex & aspect-rule-dtr &
468469
[ SYNSEM.LOCAL.CAT.VAL.COMPS < #comp1, #comp2>,
469470
ARG-ST < [ LOCAL.CAT.HEAD noun ],
470471
#comp1 &
471472
[ LOCAL.CAT [ VAL [ SPR < >,
472473
COMPS < > ],
473474
HEAD noun ],
474-
OPT -] ,
475+
OPT +] ,
475476
#comp2 &
476477
[ LOCAL.CAT [ VAL [ SPR < >,
477478
COMPS < > ] ],
478-
OPT -] >].
479+
OPT +] >].
479480

480481
ditrans-verb-lex := ditransitive-lex-item & super-ditrans-verb-lex.
481482

@@ -1430,7 +1431,7 @@ de-super-lex := lex-item &
14301431
VAL.COMPS < > ] ] ] > ],
14311432
VAL [ SPR < >,
14321433
SPEC < >,
1433-
COMPS < synsem > ] ] ] ].
1434+
COMPS < synsem & [ LOCAL.CAT.MC + ] > ] ] ] ].
14341435

14351436
de-assoc-lex := de-super-lex & adposition-lex &
14361437
[ SYNSEM [ LOCAL [ CAT [ HEAD.MOD < [ BARE -,
@@ -1448,29 +1449,20 @@ de-assoc-lex := de-super-lex & adposition-lex &
14481449
NON-LOCAL.SLASH 0-dlist,
14491450
OPT - ] > ].
14501451

1451-
#|
1452-
de-assoc-lex := de-assoc-lex &
1453-
[ ARG-ST < synsem-min,
1454-
[ LOCAL.CAT.HEAD +nv ] > ].
14551452

1456-
de-assoc-v-lex := de-assoc-lex &
1457-
[ ARG-ST < synsem-min,
1458-
[ LOCAL.CAT.HEAD verb ] > ].
1459-
|#
14601453
;; SSH 2015-07-13: relative marker 的
14611454
;; ZZF 2015-9-30: subj restriction of the v/adj to stop spurious parses
14621455
de-comp-lex := de-super-lex & raise-sem-lex-item & no-icons-lex-item &
14631456
[ SYNSEM [ PAREN -,
14641457
LOCAL [ CAT [ HEAD.MOD < [ LOCAL #slash ] >,
14651458
VAL [ COMPS < [ LOCAL [ CAT [ HEAD +vj,
1466-
MC +-or--,
14671459
VAL [ SUBJ < > ] ] ],
14681460
NON-LOCAL.SLASH 1-dlist & <! #slash !> ] > ] ] ],
14691461
NON-LOCAL non-local ] ].
14701462

14711463

14721464
;;FB & ZZF 2015-10-28 nominalizing DE,
1473-
;; creating empty noun (NONCOMP +), in lexicon 的_nominalizer_n gives "generic_n_rel".
1465+
;; creating empty noun (NONCOMP +), in lexicon 的_nom_n gives "generic_n_rel".
14741466
de-nominalizer-lex := no-icons-lex-item & norm-sem-lex-item &
14751467
[ SYNSEM [ PAREN -,
14761468
LOCAL [ CAT [ HEAD noun & [MOD <> ],
@@ -1774,8 +1766,9 @@ aspect-lex-rule := const-cat-change-only-lex-rule &
17741766
POSTHEAD #posthead ] ] ],
17751767
C-CONT [ RELS <! !>, HCONS <! !>, ICONS <! !> ] ].
17761768

1777-
aspect-rule-dtr := word-or-lexrule & [ SYNSEM.LOCAL.CAT.MC na ].
1778-
1769+
;;15-2-2016 ZZF SSH FB stop using MC for controlling overgeneration, which will be done in SEM-I
1770+
aspect-rule-dtr := word-or-lexrule.
1771+
;;& [ SYNSEM.LOCAL.CAT.MC na ]
17791772

17801773

17811774
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

zhong.tdl

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,16 @@ finite := form.
237237

238238
;; SSH/ZZF 2015-04-29: [tentative := aspect.] should be reviewed.
239239
;has-aspect := aspect.
240-
perfective := aspect.
240+
perf-or-exp := aspect.
241241
durative := aspect.
242242
delimitative := aspect.
243243
tentative := aspect.
244244
;; SSH 2014-09-19: The type hierarchy for aspect should be researched
245245
;; more. We assume here that guo and no-marking imply *imperfective*.
246+
;; 2016-2-15 ZZF changing experiential from "imperfective" to "perfective" ::fix me
246247
imperfective := aspect.
247-
experiential := imperfective.
248+
perfective := perf-or-exp.
249+
experiential := perf-or-exp.
248250
;; SSH 2014-09-04; blocking overgeneration
249251
non-aspect := imperfective.
250252

@@ -278,14 +280,17 @@ head-only :+
278280
HEAD-DTR.SYNSEM.LOCAL.CAT [ NONSUBJ #ns,
279281
NONCOMP #nc ] ].
280282

283+
;;2016-2-15 ZZF FB set SPR to < > to force COMP to have SPR first. TEST ME!!!
281284
basic-head-comp-phrase :+
282285
[ SYNSEM.LOCAL.CAT [ MC #mc,
283286
VAL.SPEC #spec ],
284287
HEAD-DTR.SYNSEM [ BOUND na-or--,
285288
LOCAL.CAT [ MC #mc,
286-
VAL.SPEC #spec ] ]
287-
].
288-
; NON-HEAD-DTR.SYNSEM.LOCAL.CAT.NONCOMP - ].
289+
VAL.SPEC #spec ] ] ].
290+
291+
292+
basic-head-comp-phrase :+ [ SYNSEM.LOCAL.CAT.NONCOMP #nc,
293+
HEAD-DTR.SYNSEM.LOCAL.CAT.NONCOMP #nc ].
289294

290295
basic-head-mod-phrase-simple :+
291296
[ SYNSEM.LOCAL [ CAT.MC #mc,
@@ -327,6 +332,14 @@ head-comp-phrase := basic-head-1st-comp-phrase & head-initial &
327332
NON-HEAD-DTR.SYNSEM [ R-PERIPH na-or--,
328333
INTERJECTED na-or-- ] ].
329334

335+
;;2016-2-15 ZZF FB separating head-comp for verbs and adjectives
336+
hdvj-comp-phrase := head-comp-phrase &
337+
[ SYNSEM.LOCAL.CAT.HEAD +vj,
338+
NON-HEAD-DTR.SYNSEM.LOCAL.CAT.VAL.SPR < > ].
339+
340+
hdnrpdmo-comp-phrase := head-comp-phrase &
341+
[ SYNSEM.LOCAL.CAT.HEAD +nrpdmo ].
342+
330343
;; WWJ (2015-03-28) - HEAD-DTR's spart value is passed up to this phrase
331344
head-comp-phrase :+
332345
[ SYNSEM.SPART #spart,
@@ -335,11 +348,9 @@ head-comp-phrase :+
335348

336349
;; SSH/ZZF 2015-07-15
337350
head-comp-phrase :+ [ SYNSEM.LOCAL.CAT.NONCOMP #nc,
338-
HEAD-DTR.SYNSEM.LOCAL.CAT.NONCOMP #nc,
339-
SYNSEM.NON-LOCAL.SLASH 0-dlist ].
351+
HEAD-DTR.SYNSEM.LOCAL.CAT.NONCOMP #nc ].
352+
;; to allow 0-1-dlist SYNSEM.NON-LOCAL.SLASH 0-dlist ].
340353

341-
basic-head-comp-phrase :+ [ SYNSEM.LOCAL.CAT.NONCOMP #nc,
342-
HEAD-DTR.SYNSEM.LOCAL.CAT.NONCOMP #nc ].
343354

344355
;; SSH 2015-04-16: adp -> prep
345356
head-2nd-comp-phrase := basic-head-2nd-comp-phrase & head-initial &
@@ -365,11 +376,11 @@ comp-head-final-phrase := basic-head-1st-comp-phrase & head-final &
365376
subj-head-phrase := decl-head-subj-phrase & head-final &
366377
[ SYNSEM.LOCAL.CAT.MC #mc,
367378
SYNSEM.SPART #spart,
368-
HEAD-DTR.SYNSEM.LOCAL.CAT [ MC #mc,
369-
VAL [ SPR olist,
379+
HEAD-DTR.SYNSEM [ LOCAL.CAT [ MC #mc,
380+
VAL [ SPR olist,
370381
COMPS < > ],
371-
POSTHEAD + ],
372-
HEAD-DTR.SYNSEM [ SPART #spart,
382+
POSTHEAD + ],
383+
SPART #spart,
373384
NON-LOCAL.SLASH 0-1-dlist ],
374385
NON-HEAD-DTR.SYNSEM [ R-PERIPH na-or--,
375386
INTERJECTED na-or--,
@@ -441,6 +452,14 @@ relative-clause := binary-phrase & phrasal & head-compositional & head-final &
441452

442453
;; MATRIX REDEFINITION
443454
;; SSH 2015-05-07: x_rel and q_rel are defined as types.
455+
n-coord-phrase :+
456+
[ SYNSEM.LOCAL.CONT.HOOk.INDEX.SORT #sort,
457+
LCOORD-DTR.SYNSEM.LOCAL.CONT.HOOk.INDEX.SORT #sort ].
458+
459+
np-coord-phrase :+
460+
[ SYNSEM.LOCAL.CONT.HOOk.INDEX.SORT #sort,
461+
LCOORD-DTR.SYNSEM.LOCAL.CONT.HOOk.INDEX.SORT #sort ].
462+
444463
basic-np-top-coord-rule := np-coord-phrase &
445464
[ SYNSEM.LOCAL.CAT.VAL.SPR < >,
446465
C-CONT [ HOOK [ LTOP #ltop,
@@ -698,12 +717,13 @@ filler-head-phrase := basic-head-filler-phrase & head-final &
698717
IARG2 #index ] !> ] ].
699718

700719
;; SSH 2014-09-02: added [MODIFIED] for blocking overgeneration
701-
;; SSH 2014-09-02: added [MC +] for blocking overgeneration
720+
;; SSH 2014-09-02: added [MC +] for blocking overgeneration ;;zz: MC luk to allow extract from any v clause
702721
extracted-comp-phrase := basic-extracted-comp-phrase &
703-
[ SYNSEM.MODIFIED #modified,
722+
[ SYNSEM [ MODIFIED #modified,
723+
LOCAL.CAT.MC + ],
704724
HEAD-DTR.SYNSEM [ MODIFIED #modified,
705725
BOUND na-or--,
706-
LOCAL [ CAT [ MC +, HEAD verb ],
726+
LOCAL [ CAT.HEAD verb,
707727
CONT.HOOK #hook ] ],
708728
C-CONT [ HOOK #hook, RELS <! !>, HCONS <! !>, ICONS <! !> ] ].
709729

@@ -719,12 +739,13 @@ extracted-comp-phrase := basic-extracted-comp-phrase &
719739
;;
720740
extracted-subj-phrase := basic-extracted-subj-phrase &
721741
[ SYNSEM [ MODIFIED #modified,
722-
LOCAL.CAT [ MC -,
742+
LOCAL.CAT [ MC +,
723743
VAL.SPEC < [] > ] ],
724744
HEAD-DTR.SYNSEM [ MODIFIED #modified,
725745
BOUND na-or--,
726746
LOCAL [ CAT [ HEAD +vj,
727-
VAL.SUBJ < [ LOCAL.CAT.NONSUBJ - ] > ],
747+
VAL [ SUBJ < [ LOCAL.CAT.NONSUBJ - ] >,
748+
COMPS < > ] ],
728749
CONT.HOOK #hook ] ],
729750
C-CONT [ HOOK #hook, RELS <! !>, HCONS <! !>, ICONS <! !> ] ].
730751

0 commit comments

Comments
 (0)