Grammar example
Japanese version
Now let us take "I thanked him." as an example. I will illustrate how the ENJU grammar work with this example.
The lexical entry corresponding to the "I" in this sentence would like like the following AVM. For more precise description of the lexical entry, check out the lexical entry of "I" .
(You can view it with a browser that supports XHTML and XSLT)
| PHON: < 1"I" >
|
|
SYNSEM
|
|
LOCAL
|
|
CAT
|
|
HEAD
|
| hpsg_noun
|
| CASE: hpsg_nom
| MOD: < >
| POSTHEAD: hpsg_binary
|
|
|
VAL
|
| SUBJ: < >
|
| COMPS: < >
| SPR: < >
| SPEC: < >
| CONJ: < >
|
|
|
|
CONT
|
|
HOOK
|
|
PRED
|
|
LEX_WORD
|
| word
|
| INPUT: 1"I"
| SURFACE: 2"i"
| BASE: 2
| INPUT_POS: 3"PRP"
| POS: 3
| BASE_POS: 3
| POSITION: 40
|
|
|
|
|
|
| RELS: < >
|
|
|
NONLOCAL
|
|
INHER
|
| REL: < >
|
| SLASH: < >
|
|
|
|
|
The lexical entry corresponding to the "thanked" in this sentence would look like the following AVM. For more precise description, check out the lexical entry of "thanked".
| PHON: < 5"thanked" >
|
|
SYNSEM
|
|
LOCAL
|
|
CAT
|
|
HEAD
17
|
| hpsg_verb
|
| VFORM: verb_fin
| TENSE: tense_past
| MOD: < >
| POSTHEAD: hpsg_binary
|
|
|
VAL
|
| SUBJ: <
|
|
LOCAL
|
|
CAT
|
|
HEAD
|
| hpsg_noun
|
| CASE: hpsg_nom
| MOD: < >
| POSTHEAD: hpsg_binary
|
|
|
VAL
|
| SUBJ: < >
|
| COMPS: < >
| SPR: < >
| SPEC: < >
| CONJ: < >
|
|
|
|
|
|
|
| >
|
| COMPS: <
|
|
LOCAL
|
|
CAT
|
|
HEAD
|
| hpsg_noun
|
| CASE: hpsg_acc
| MOD: < >
| POSTHEAD: hpsg_binary
|
|
|
VAL
|
| SUBJ: < >
|
| COMPS: < >
| SPR: < >
| SPEC: < >
| CONJ: < >
|
|
|
|
|
|
|
| >
| SPR: < >
| SPEC: < >
| CONJ: < >
|
|
|
|
CONT
|
|
HOOK
18
|
|
PRED
|
|
LEX_WORD
|
| word
|
| INPUT: 5"thanked"
| SURFACE: "thanked"
| BASE: "thank"
| INPUT_POS: 8"VBD"
| POS: 8
| BASE_POS: "VB"
| POSITION: 91
|
|
|
|
| ARG1: 6
| ARG2: 7
|
|
| RELS: < >
|
|
|
NONLOCAL
|
|
INHER
|
| REL: < >
|
| SLASH: < >
|
|
|
|
|
The lexical entry corresponding to the "him" in this sentence would look like the following AVM.For more precise description, check out the lexical entry of "him".
| PHON: < 10"him" >
|
|
SYNSEM
|
|
LOCAL
|
|
CAT
|
|
HEAD
|
| hpsg_noun
|
| CASE: hpsg_acc
| MOD: < >
| POSTHEAD: hpsg_binary
|
|
|
VAL
|
| SUBJ: < >
|
| COMPS: < >
| SPR: < >
| SPEC: < >
| CONJ: < >
|
|
|
|
CONT
|
|
HOOK
|
|
PRED
|
|
LEX_WORD
|
| word
|
| INPUT: 10"him"
| SURFACE: 11"him"
| BASE: 11
| INPUT_POS: 12"PRP"
| POS: 12
| BASE_POS: 12
| POSITION: 132
|
|
|
|
|
|
| RELS: < >
|
|
|
NONLOCAL
|
|
INHER
|
| REL: < >
|
| SLASH: < >
|
|
|
|
|
Next we apply the Head-Complement Schema to the sign of "thanked" and the sign of "him".The Head-Complement Schema can be applied to signs that satisfy the following constraint:
|
SYNSEM|LOCAL|CAT|VAL
|
| SUBJ: A
|
| COMPS: < B | C >
| SPR: D
| SPEC: E
| CONJ: < >
|
|
|
|
|
|
|
The following constraint is applied to the mother of "thanked" and "him".(?The Valence Principle is
hard-coded as part of the following constraint)
|
SYNSEM|LOCAL|CAT|VAL
|
| SUBJ: A
|
| COMPS: C
| SPR: D
| SPEC: E
| CONJ: < >
|
|
|
As a result of applying the above rule, the initial value of SYNSEM\LOCAL\CAT\VAL\COMP feature of the sign of the head ("thanked") is unified with the value of the SYNSEM feature of the sign of the complement ("him"). Furthermore, the SYNSEM\LOCAL\CONT\HOOK\ARG2 feature of the head is assigned the value of the SYNSEM\LOCAL\CONT\HOOK feature of "him". As a result of applying the semantic_binary_principle, the SYNSEM\LOCAL\CONT\HOOK of the head is passed up to the mother.The sign of the mother is simplified as the following AVM. Note that the following AVM also satisfies the head_feature_principle.
| PHON: < 5 10 >
|
|
SYNSEM
|
|
LOCAL
|
|
CAT
|
|
HEAD
17
|
| hpsg_verb
|
| VFORM: verb_fin
| TENSE: tense_past
| MOD: < >
| POSTHEAD: hpsg_binary
|
|
|
VAL
|
| SUBJ: <
|
|
LOCAL
|
|
CAT
|
|
HEAD
|
| hpsg_noun
|
| CASE: hpsg_nom
| MOD: < >
| POSTHEAD: hpsg_binary
|
|
|
VAL
|
| SUBJ: < >
|
| COMPS: < >
| SPR: < >
| SPEC: < >
| CONJ: < >
|
|
|
|
|
|
|
| >
|
| COMPS: < >
| SPR: < >
| SPEC: < >
| CONJ: < >
|
|
|
|
CONT
|
|
HOOK
18
|
|
PRED
|
|
LEX_WORD
|
| word
|
| INPUT: 5"thanked"
| SURFACE: "thanked"
| BASE: "thank"
| INPUT_POS: 8"VBD"
| POS: 8
| BASE_POS: "VB"
| POSITION: 91
|
|
|
|
| ARG1: 6
|
ARG2
7
|
|
PRED
|
|
LEX_WORD
|
| word
|
| INPUT: 10"him"
| SURFACE: 11"him"
| BASE: 11
| INPUT_POS: 12"PRP"
| POS: 12
| BASE_POS: 12
| POSITION: 132
|
|
|
|
|
|
|
| RELS: < >
|
|
|
NONLOCAL
|
|
INHER
|
| REL: < >
|
| SLASH: < >
|
|
|
|
|
As a result of applying the Head-Subject Schema to the above sign and the sign of "I", we obtain the sign corresponding to the whole sentence.
The initial value SYNSEM\LOCAL\CAT\VAL\SUBJ feature of the sign of the head ("thanked him") is unified with the value of the
SYNSEM feature of the sign of subject("I").The SYNSEM\LOCAL\CONT\HOOK\ARG1 feature of the head is assigned the value of the SYNSEM\LOCAL\CONT\HOOK feature of "I". As a result of applying the semantic_binary_principle, the SYNSEM\LOCAL\CONT\HOOK\ARG1 feature of the head is passed up to the mother.(?mistake in Japanese version. "him"->"I")
| PHON: < 1 5 10 >
|
|
SYNSEM
|
|
LOCAL
|
|
CAT
|
|
HEAD
17
|
| hpsg_verb
|
| VFORM: verb_fin
| TENSE: tense_past
| MOD: < >
| POSTHEAD: hpsg_binary
|
|
|
VAL
|
| SUBJ: < >
|
| COMPS: < >
| SPR: < >
| SPEC: < >
| CONJ: < >
|
|
|
|
CONT
|
|
HOOK
18
|
|
PRED
|
|
LEX_WORD
|
| word
|
| INPUT: 5"thanked"
| SURFACE: "thanked"
| BASE: "thank"
| INPUT_POS: 8"VBD"
| POS: 8
| BASE_POS: "VB"
| POSITION: 91
|
|
|
|
|
ARG1
| 6
|
|
PRED
|
|
LEX_WORD
|
| word
|
| INPUT: 1"I"
| SURFACE: 2"i"
| BASE: 2
| INPUT_POS: 3"PRP"
| POS: 3
| BASE_POS: 3
| POSITION: 40
|
|
|
|
|
|
ARG2
7
|
|
PRED
|
|
LEX_WORD
|
| word
|
| INPUT: 10"him"
| SURFACE: 11"him"
| BASE: 11
| INPUT_POS: 12"PRP"
| POS: 12
| BASE_POS: 12
| POSITION: 132
|
|
|
|
|
|
|
| RELS: < >
|
|
|
NONLOCAL
|
|
INHER
|
| REL: < >
|
| SLASH: < >
|
|
|
|
|
We can obtain the following predicate argument structure from the value of the SYNSEM\LOCAL\CONT\HOOK feature of the above sign:
ROOT ROOT ROOT ROOT -1 ROOT thanked thank VBD VB 1
thanked thank VBD VB 1 ARG1 I i PRP PRP 0
thanked thank VBD VB 1 ARG2 him him PRP PRP 2
Enju Developers' Manual
Enju Home Page
Tsujii Laboratory
MIYAO Yusuke (yusuke@is.s.u-tokyo.ac.jp)