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...
Close
Tree
window.
Style
Tree
Full Tree
No Dead Ends
Complete paths
Show State Indexes
End States
Path
window.
Show First
Show Previous
Path
window, jump
to the previous one.
Show Next
Path
window, jump
to the next one.
Show Last
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
Inline
The Path
window also has a menu Path
, in which you can
specify whether state indexes are shown:
Show State Indexes