Some parts of this website may do not work correctly, because your browser doesn't support JavaScript or you have disabled it. In order to use all features please enable JavaScript in your browser.

Specification for writer > dot-writer

dot-writer

DOT Writer presents the results as a directed graph, described in DOT language used by GraphViz software. The same effect can be achieved using gv-writer --format canon but dot-writer does not use the GraphViz library to generate the output.

Options for dot-writer are similar to gv-writer's options. The main differences:

  • dot-writer has no option for specifying the output format since it cannot generate output in formats other than DOT;
  • for output's clarity, dot-writer produces not aligned monochromatic output; --align option forces nodes to be aligned left to right, --color option turns on the edge coloring.

Aliases

write-dot

Examples

tokenize --lang en ! dot-writer

Tokenize English text and show the result as a graph described in DOT language.

in:
I've read “Fahrenheit 451”
out:
digraph G {
rankdir=LR
0 -> 4 [label="I've T"]
4 -> 5 [label="_ B"]
5 -> 9 [label="read T"]
9 -> 10 [label="_ B"]
10 -> 13 [label="“ I"]
13 -> 23 [label="Fahrenheit T"]
23 -> 24 [label="_ B"]
24 -> 27 [label="451 X"]
0 -> 30 [label="I've_read_“Fahrenheit_451” FRAG"]
0 -> 30 [label="I've_read_“Fahrenheit_451” TEXT"]
27 -> 30 [label="” I"]
}

Options

Allowed options:
  --align               force aligning nodes left to right
  --color               assign different colors to edges with different tags
  --show-symbol-edges   show symbol edges
  --show-tags           print edges' layer tags
  --tags arg            filter edges by specified tags
  --tree                show dependencies between edges instead of the content 
                        of the lattice

Other help resources