Specification for writer > gv-writer
GV writer presents the results in a simple graphical form. For this purpose, it uses GraphViz library - a library for creating graphs (hence GV acronym).
If gv-writer is not available, you can obtain the graph representation of the lattice in DOT format using dot-writer.
GV-writer shows the content of the lattice as a directed graph. The text and
various annotations are represented by edges of the graph. For clarity, symbol
edges are not shown by default. To see all edges, use the
switch. The edges of different layer tags are distinguished by different colors.
To see the tags' names, use the
--show-tags switch. To disable coloring,
--no-color switch. The range of displayed edges can be restricted
--tags option, which allows to specify the visible layer tags.
When this option is used, only edges with specified layer tags are shown.
GV-writer tries to align lattice vertices left to right.
This default behavior can be disabled by the
The default output format is SVG, but many other formats are also available.
A different output format can be set by the
--format option. The list of
available output formats:
Detailed description of output formats can be find on
GV-writer can be also used in the tree mode, which can be switched on with
--tree option. Tree mode allows for displaying the dependency tree.
When in the tree mode, lattice edges are displayed as tree nodes, and
the dependencies between lattice edges are depicted as arrows. Alternative
dependencies are marked with consecutive numbers. This mode is particularly
useful for displaying parse trees.
Aliaseschart-writer, draw, graph, graph-writer, write-chart, write-graph
segment --lang en ! tokenize --lang en ! gv-writer --tags token segment --show-tags
Show tokens and segments of a given text.
Allowed options: --disambig choose only one partition --format arg (=svg) choose output format --no-align allow nodes to be not aligned left to right --no-color make output monochromatic (black on white) --show-tags print edges' layer tags --show-symbol-edges show symbol edges --tags arg show only edges tagged with specified tags --tree show dependencies between edges instead of the content of the lattice