Tree Adjoining Grammar

TuLiPA and the lexicon (1)

21. January 2013

Laura Kallmeyer, Timm Lichte

Setting up the system on your account

TuLiPA is part of the VM xmg&tulipa, that needs to be startet with VirtualBox.

After having extracted it you will see a metagrammar (example5.mg), a lemma lexicon (lemma), and a morphological lexicon (morph).

Compiling the source code

The compiled files are regular XML-files, hence each has the postfix "xml".

Starting and using TuLiPA

There are two ways to start TuLiPA:
  1. Start it with the terminal:
    $ java -jar ../TuLiPA-2.0.2.jar
  2. Start it by clicking the launcher icon in the top panel.
In either case, a GUI should appear where you can specify the location of the compiled resources.
Note that "axiom" should be set to "s" (the category of the root node)!

Now try to parse the following sentence:
(1) Peter likes Mary


Exercises

Extend the metagrammar, the lemma lexicon, and the morphological lexicon, such that they cover the follwing sentences:
(2) John sleeps
(3) the kids sleep
(4) every boy sleeps
(5) who likes John
(6) Mary always sleeps
(7) John seems to sleep
(8) John tries to sleep
(9) Mary John thinks Peter likes

Timm Lichte
Last modified: Sat Jan 5 19:56:06 CET 2013