parsedyff

Visualize the differences between two treebank parse trees via graphviz.

Usage

See 'parsedyff -h' for full options. In summary, there are two modes: serial and parallel. Say we have two files A and B with 2 trees in each. In serial, our first diff would be between A[0] and A[1], then between B[0] and B[1]. In parallel, our first diff would be between A[0] and B[0], then between A[1] and B[1] (much like diff(1)). parsedyff can output many formats (all of those supported by graphviz's dot) and has several options to control how output files are generated.

Unless you have my Parsing module, (which is unfortunately not packaged at time of press but will eventually be available from my website) parsedyff needs each tree on its own line.

Installation

Standard distutils install: 'python setup.py install'

Python dependencies:
pydot: http://dkbza.org/pydot.html
InputTree: http://cs.brown.edu/~dmcc/software/

Other dependencies:
graphviz: http://graphviz.org

parsedyff uses utils.py from here which I have included as AIMA.py for convenience.

Screenshots

Postscript: http://cs.brown.edu/~dmcc/software/parsedyff/parsedyfftest.ps
PNG: http://cs.brown.edu/~dmcc/software/parsedyff/parsedyfftest.png

Download

Source: http://cs.brown.edu/~dmcc/software/parsedyff/parsedyff-0.1.tar.gz

Author

David McClosky (dmcc+py AT cs DOT brown DOT edu)
Homepage: http://cs.brown.edu/~dmcc/
Software: http://cs.brown.edu/~dmcc/software/