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

Penman serialization #85

Closed
goodmami opened this issue Nov 8, 2016 · 0 comments
Closed

Penman serialization #85

goodmami opened this issue Nov 8, 2016 · 0 comments
Milestone

Comments

@goodmami
Copy link
Member

goodmami commented Nov 8, 2016

We now have a Penman module available (https://github.com/goodmami/penman) for serializing from arbitrary (but connected) triple lists, so it's a good time to add Penman serialization as an option for MRS.

It should be available for DMRS and EDS, particularly, but it could also be added for MRS (it's just an uglier graph). This could be done by giving the Mrs, Dmrs, and Eds classes to_triples() and from_triples() methods (like to_dict() and from_dict()). The penman module could then serialize them.

Thus, as the JSON serialization option requires two calls:

json.dumps(Mrs.to_dict(x))

The Penman serialization would also require two:

penman.dumps(Mrs.to_triples(x))
@goodmami goodmami added this to the v0.6.0 milestone Jan 18, 2017
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

1 participant