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 any 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've
already clicked on a node, you can click on one of its successor nodes
using the right mouse button or on one of its predecessor nodes using
the left mouse button. Then all rule applications, from the state
clicked on previously up to the state clicked on this time, will be
displayed in the Path
windows. The corresponding path will be
highlighted in the Tree
window. If you click on a node with the
middle mouse button, only this node will be displayed in the Path
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 started from the Tree
menu bar:
Window
Export Postscript...
Close
Tree
window.
Style
Tree
Full Tree
No Dead Ends
Complete paths
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
windows 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