Yliopiston etusivulle In English
Helsingin yliopisto
clt361: Grammar Engineering - lukuvuosi 2009-2010

Yhteystiedot

Nykykielten laitos

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 ~gwilcock/delphin/lkb/src/data/itfs/g5lex 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 lkb-cfg-5 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

  • Edit 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).
  • Edit rules.tdl to add an implementation of the Head-Modifier Rule.
    See "Review: Grammar Rules" in Semantics (Compositionality).

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.
  • Edit 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.

Lexical Entries

  • Edit lexicon.tdl to add the adverb frequently.
    See "Lexical Entry for frequently" in Semantics (Compositionality).
  • Try parsing these dogs sleep frequently and these dogs chased the cat frequently.
  • Edit lexicon.tdl to add the preposition near.
  • 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?
© 2006-2010 Graham Wilcock

Hae laitoksen sivuilta:

Laitoksen etusivulle | Tiedekunnan etusivulle | Yliopiston etusivulle

Copyright © 2003-2005 Helsingin yliopisto. Kaikki oikeudet pidätetään.