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.
- Start the VM .
- At some point a login screen appears: user name = xmguser, password = xmguser
- Download the following compressed file: grammar1.zip
After having extracted it you will see a metagrammar (example5.mg), a lemma lexicon (lemma), and a morphological lexicon (morph).
Compiling the source code
- To compile the metagrammar type:
$ MetaTAG example5.mg --xml -o example5.xml
- To compile lemma type:
$ lexConverter -tL -i lemma -o lemma.xml
- To compile morph type:
$ lexConverter -tM -i morph -o morph.xml
The compiled files are regular XML-files, hence each has the postfix "xml".
Starting and using TuLiPA
There are two ways to start TuLiPA:
- Start it with the terminal:
$ java -jar ../TuLiPA-2.0.2.jar
- 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