Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output formats #8

Open
guyemerson opened this issue Nov 27, 2015 · 4 comments
Open

Output formats #8

guyemerson opened this issue Nov 27, 2015 · 4 comments

Comments

@guyemerson
Copy link
Member

Decide on what output formats we would like to support.
Code to traverse the graph could be separate, and used by all formats.

@guyemerson
Copy link
Member Author

We could also consider __repr__ as an output

@AlexKuhnle
Copy link

XML output format done (function: Dmrs.dumps_xml)

@AlexKuhnle
Copy link

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).

@guyemerson
Copy link
Member Author

From Delph-in summit:

  • Penman notation (Mike and Stephan also working on this)
  • RDF triples (Stephan did this for MRS and EDS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants