PL 24 (Unioninkatu 40)
00014 HELSINGIN YLIOPISTO
Puhelin +358 (09) 1911 (vaihde)
Faksi +358 (09) 191 28313
Heads and Modifiers
Make a new subdirectory
lkb-cfg-5 for this exercise.
Copy all the files from
into it. This is the same grammar that you used in
Heads, Complements and Specifiers.
Start LKB, use Load->Complete grammar, and select the
script file from your
directory to load the grammar.
Parse these dogs sleep.
This grammar does not handle modifiers. It should be possible
to include adverb modifiers, as in these dogs sleep
frequently, and prepositional phrase modifiers as in
these dogs sleep near the aardvark.
The Type Hierarchy
types.tdl to add MOD (type *list*)
alongside SPR and COMPS.
Add adv (adverb) and prep (preposition) as new parts-of-speech
alongside noun, verb and det.
The Head-Modifier Rule
The Head-Modifier Rule says that a head daughter can be
followed by a modifier daughter whose MOD list matches the
head daughter. (For now, it's OK to allow only post-modifiers,
and not pre-modifiers).
rules.tdl to add an implementation of the
See "Review: Grammar Rules"
The Valency Principle
The Valency Principle says that the valency features of a
phrase's mother must be the same as the valency features of
its head daughter, unless a rule says otherwise. The valency
features are SPR, COMPS and MOD.
rules.tdl as required, following the Valency
Principle. The Head-Modifier Rule needs matching SPR and
COMPS in mother and head daughter. The Head-Specifier and
Head-Complement Rules need matching MOD in mother and head
daughter. Use re-entrancy tags (#spr, #mod) where required.
© 2006-2010 Graham Wilcock
lexicon.tdl to add the adverb
See "Lexical Entry for frequently"
Try parsing these dogs sleep frequently and these
dogs chased the cat frequently.
lexicon.tdl to add the preposition
Try parsing these dogs sleep near the aardvark, where
the PP modifies a VP, and these dogs near the aardvark
sleep, where the PP modifies a NOM.
Try parsing these dogs chased the cat near the
aardvark. This should have different structures like the
astronomer with the telescope.
Try these dogs sleep near the aardvark frequently and
these dogs chased the cat near the aardvark frequently.
How many different trees do you get?
Try these dogs chased the cat frequently near the
aardvark. How many trees do you get now? Why?