MUG Workbench is a development and debugging tool for Multimodal Natual Language Generation (NLG). The grammar formalism supported is Multimodal Functional Unification Grammar (MUG).
The MUG system runs MUG grammars with fixed (test cases) and arbitrary input specifications to produce output in a natural language, graphical user interface and possibly in other modes. It is designed to do three things:
The MUG system does these three jobs in parallel. MUG Workbench can serve to inspect the data-structures used during generation. It should help you to learn more about the nature of unification grammars used for parsing or natural language generation. Furthermore, the MUG Workbench is helpful in debugging your grammars.
Technically, the MUG system consists of several components, among them
More documentation can be made available on request. A tutorial introducing the MUG formalism and the workbench is available with the system.
MUG System was written by David Reitter, while at MIT Media Lab Europe. Contact via E-Mail: dreitter @ inf.ed.ac.uk.
Contributions from Erin Panttaja (erin @ mle.media.mit.edu (MUG components/grammars, designs) and Eva Maguire (Centering components).
MUG was developed with funds from MIT Media Lab Europe and the European Commission under the FASiL grant. More about the multimodal interaction developed in the FASiL project can be found here. There is a FASiL website, too.
If you know a bit about NLG, you'll probably know how Functional Unification Grammar (FUG) works. FUF is a common formalism, and SURGE is probably the best-known example for an actual grammar (SURGE generates English sentences). FUG works with feature-structures (attribute value matrices), and it works by unifying (constituent) substructures of the input specification with suitable grammar rules. It's similar to a unification-based producation grammar, except that symbols don't replace each other -- you have one big structure in the end. (There are many other aspects to Functional Unification, but I shouldn't go into detail here. Read Dale&Reiter.)
MUG extends FUG by saying: let's unify one grammar rule for each mode (modality = screen, voice, gesture and the like) with the constituent substructures. Thereby we ensure that the output between the modes is coherent where necessary. (For details, please read our HLT-2004 paper.)
The generation process can adapt to situations and devices. While the semantic specification that is input to the generation and the grammar itself both specify hard constraints, situations and devices usually give soft constraints: "The colors on this device's screen don't show a lot of contrast.", or "In this situation, it's hard to hear all of the audio." Such soft constraints are envoded in a fitness function, which is a scoring heuristic that determines how well a particular output variant works in the given situation on the given device. Remember that the grammar potentially generates many output variants (it's ambiguous!). We need to pick one of them to display, and that's what the fitness function helps us with.
Just download the MUG System, download and install
If you want to use MUG in a dialogue system, it is recommended to additionally install YAP-Prolog for the runtime module.
It runs on Linux, Mac OS X, and even on Windows.
Download the MUG System 1.2 with the complete source code:
Following the instructions in the README file. Usually, you will just need to extract the MUG System package, install SWI-Prolog (easy).
The MUG Workbench runs in a Web Browser (IE, Mozilla, Safari etc.).
This is a view that shows variants coming out of the grammar (along with a score), and a feature structure describing part of the information exchanged during the generation process:
You can demo the result in a PDA-size screen:
You can inspect a log of the generation process - useful in learning how the algorithm works:
Select among several device and situation models (extensible!):