Open guyemerson opened 8 years ago
We could also consider __repr__
as an output
XML output format done (function: Dmrs.dumps_xml)
I added a visualise method to the Dmrs class, taking a format string and an optional filehandle. The method calls the outsourced visualise method in serial.py. So far the only supported format is dot (http://www.graphviz.org/content/dot-language) without any "optimised" node/edge positioning, i.e. the graphs look messy if the sentence is not small. To translate dot to png: "dot -Tpng [file.dot] > [file.png]" (see comment in code).
From Delph-in summit:
Decide on what output formats we would like to support. Code to traverse the graph could be separate, and used by all formats.