Grammarformalisms

XMG - eXtensible MetaGrammar

June 25, 2007
Laura Kallmeyer, Timm Lichte, Wolfgang Maier

Setting up the system on your account

The XMG compiler is installed in the AFS. You should still have the following line on top of your ~/.bashrc:

$ test -r /afs/sfs/lehre/wmaier/tag-seminar/.bashrc && . /afs/sfs/lehre/wmaier/tag-seminar/.bashrc
If this line is present, you should be able to run the metagrammar compiler by typing
$ MetaTAG

What does XMG do?

Please copy the file
/afs/sfs/lehre/wmaier/tag-seminar/xmg/small.mg
into your home directory and open it in xemacs.

It contains a small metagrammar for french, consisting of two trees. They respresent a transitive verb, either with a canonical subject or a subject in relative position.

Specification of the Metagrammar

Principles, types, properties and features.

In the first section, principles, types, properties and features are specified.

Defining the building blocks
Combining the fragments

We still need to combine the fragments. This can be achieved with the transitive class. The transitive class combines conjunctively three classes, being

Important
Ask for the combination to take place

Now we invoke the combination with

value transitive
This creates a button in the GUI. On click, the metagrammar compiler tries to find all possible solutions for the query. In our case, there are the two desired ones: a transitive verb, either with a canonical subject or a subject in relative position.

Example

to top

Wolfgang Maier
Last modified: Tue Jun 5 14:45:46 CEST 2007