Graph Editor
The graph editor is for visualizing and annotating annotation graphs. It provides a general visualization that displays all possible types of annotation in a graph of annotatable elements.
Filters
On the right-hand side of the interface, you can select which segment of the current document to show in the graph view. For large graphs, it can take some time until its layout is calculated. The checkbox next to the segment indicates if this calculation is finished. You can select more than one segment to display, by holding the Ctrl key while clicking on additional segments. You can also show a whole range of segments by holding the Shift key and clicking on the last segment of the range you want to select.
You can also choose to display spans and their annotations in the graph, by checking the checkbox Include spans. Spans are special nodes to collect a number of tokens and to annotate them all at once. If you want to learn more about spans, please read the Salt documentation.
Similarly, you can show or hide pointing relations between nodes in the graph by using the checkbox Include pointing relations.
And you can filter the segments that include annotations of a specific name by using the filter text field above the list of segments.
Graph view
The left-hand side of the graph editor is taken up by the graph view, which displays the nodes and relations in the data model of the current document.
You can navigate the graph view as follows:
-
Zoom in and out by using the mouse wheel.
- You will zoom in to where your mouse cursor is.
-
Zoom in and out by using using the keyboard.
- If you press and hold the Ctrl key, you can zoom in with the + key and zoom out with the - key.
-
Move the area of the graph that is displayed by using the keyboard:
- The Arrow keys move the area in the respective direction, and PgUp and PgDown move it up and down.
- If you press and hold the Shift key and then use the arrow or paging keys, you move more quickly.
-
Move the area of the graph that is displayed by using the mouse wheel and function keys:
- If you hold down Shift key while moving the mouse wheel, you can scroll up and down.
- If you hold down Ctrl key while moving the mouse wheel, you can scroll left and right.
-
You can center the view around a specific point in the graph by double-clicking that point.
If you don't like the layout of the graph, you can change it by simply dragging nodes with your mouse.
Console
On the bottom of the graph editor, there is the console which you can use to actually edit the graph. How to do this is explained in detail in the next section, Editing the graph.