Chapter 5. Drawing

A HMM can be converted to a dot file using a HmmDrawerDot class.

If no class has been designed for the particular type of observation one is using, than the generic GenericHmmDrawerDot class can be used.

A HMM can be converted using a command such as:

(new GenericHmmDrawerDot()).write(hmm, "hmm.dot");

The second argument is the filename (possibly with a path).

This file can be converted to a PostScript file using the graphViz tool:

dot -Tps hmm.dot -o hmm.ps