The delphin-latex
plugin has been bundled into PyDelphin as of version 1.7.0. This repository will now be archived and further development should happen in PyDelphin.
LaTeX exporters for DELPH-IN data.
Currently only one exporter is available:
delphin.codecs.dmrstikz
-- export DMRS for rendering withtikz-dependency
Contributions of other exporters are welcome!
Here is an image of the PDF produced for the DMRS for "The chef whose soup spilled quit":
This package is a plugin for PyDelphin. Install it with
pip
:$ pip install delphin-latex
It depends on the
delphin.dmrs
anddelphin.predicate
modules in PyDelphin version1.0.0
. For rendering, LaTeX and thetikz-dependency
package are required.The
delphin.codecs.dmrstikz
module implements the output functions of PyDelphin's Codec API:
dump()
- serialize list and write to a filedumps()
- serialize list and return a stringencode()
- serialize a single instance and return a stringThe
dump()
anddumps()
functions insert the LaTeX preamble and postamble so the result is a full document, whileencode()
only serializes the individualdependency
environment.For visually presenting MRSs, DMRSs, and derivation trees, you may also be interested in delphin-viz which can save visualizations as PNG or SVG files.