Next: , Previous: transmit, Up: Commands


4.41 The Command tree (malaga)

If you've started a grammatical analysis using one of the commands ma or sa (or their debug variants), you can make malaga display the result by entering

     tree

If the analysis has not yet finished (in debug mode or in case of an error), an partial tree will be shown.

If you're executing the command tree for the first time, or if you've closed the Tree window before, a new tree window will open in which the current analysis tree will be displayed.

If there is already a Tree window open, the new analysis tree will be displayed in this window.

In the upper left corner of the Tree window, you will see the sentence or the word form that has been analysed. Below, the analysis tree is displayed. An analysis path always follows the edges from the left to the right.

A circle node stands for a LAG state, a two-circle node stands for an end state. A crossed circle stands for a LAG state that has been removed by a pruning-rule, and a crossed two-circle node stands for an end state that is invalid because it has some remaining input still remaining. A box node is not a state, but a dead end, which means that no rule has created a state at this position.

Above each edge, the link's surface of the corresponding rule application is displayed. Below the edge, you'll see the name of the applied rule.

You can click on a node using the left mouse button. Then another window will open, namely the Path window. The Path window displays the surface, the feature structure and the successor rules of the state you've clicked on. The node will be highlighted by a red border.

If you press the right mouse button while the mouse is on a node, a pop-up menu will appear. You can then either select that this node is the first node of the path to be displayed, or you can select it to be the last one. All rule applications, from the first node up to the last node in the path, will be displayed in the Path window. The corresponding path will be highlighted in the Tree window.

If you're clicking on a link surface using any mouse button, the surface and its feature structure will be displayed in the Path window.

You can also click on rule names using any mouse button. Then the corresponding rule application will be displayed in the Path window, i.e. the surfaces and feature structures of the original state, the link, and the successor state, and the successor rules.

There are some commands that can be initiated from the Tree menu bar:

Window
Export Postscript...
Export the displayed analysis tree as an Embedded Postscript file. Currently, only ASCII, Latin-1 Supplement, Hangul Compatibility Jamo and Hangul Syllables can be converted to Postscript.
Close
Close the Tree window.

Style
Select an item in this menu to adjust the font size.
Tree
Specify which nodes of the analysis tree are actually displayed and whether state indexes are shown.
Full Tree
All analysis states are displayed, and also boxes for rule applications that did not succeed (dead ends).
No Dead Ends
All analysis states are displayed.
Complete paths
Only the nodes that are part of a complete analysis are displayed.
Show State Indexes
Toggles the display of the state's indexes.

End States
Select an end state to display in the Path window.
Show First
Display the first end state.
Show Previous
If there is an end state displayed in the Path window, jump to the previous one.
Show Next
If there is an end state displayed in the Path window, jump to the next one.
Show Last
Display the last end state.

The Path window has got its own menu bar which contains the menus Window, Style, and End States with the same menu items as the corresponding menus in the Tree window, and two additional options in Style:

Hanging
Normally, all values and subvalues are aligned at their bottom. If this option is active, records are “hanging down”: they are aligned at their top.
Inline
Normally, a state is displayed with surface, feature structure and rule set stacked. If this option is active, they are displayed aligned on on line.

The Path window also has a menu Path, in which you can specify whether state indexes are shown:

Show State Indexes
Toggles the display of the state's indexes.