Open arademaker opened 1 year ago
@arademaker thanks, but really this repository is not code that I maintain. It is more a record of what was used for a previous experiment. See also https://github.com/goodmami/mrs-to-penman/issues/3#issuecomment-941161505. I should archive the repo to make that clear.
PyDelphin now has a native Penman codec (actually two, one for DMRS and another for EDS). I suggest you use those for the conversion.
Indeed, I understood that. This repo could be identified as part of the https://github.com/shlurbee/dmrs-text-generation-naacl2019 and, as you said, just code to reproduce the paper. But I would appreciate your advice on which part of the code does what.
I am assuming that besides reading the profiles and transform the MRSs in DMRS, the code in this repo also deals with the linearization of the penman (figure 2 from the paper https://aclanthology.org/N19-1235.pdf) am I right?
But I didn't identified the code to deal with quotations and Wikipedia markup mentioned in the appendix of the paper. Maybe you were just reporting what you know people did for preparing the profiles part of the wikiwoods?
This repo could be identified as part of the https://github.com/shlurbee/dmrs-text-generation-naacl2019
It is specified in setup.sh
, line 12. The requirements.txt
has PyDelphin at v0.6.2.
I am assuming that besides reading the profiles and transform the MRSs in DMRS, the code in this repo also deals with the linearization of the penman (figure 2 from the paper https://aclanthology.org/N19-1235.pdf) am I right?
Yes. More recent versions of PyDelphin have support for the conversion to PENMAN, but not in the same way as was done for this experiment.
But I didn't identified the code to deal with quotations and Wikipedia markup mentioned in the appendix of the paper.
I think that is here: https://github.com/shlurbee/dmrs-text-generation-naacl2019/blob/master/preprocessing.py
This is related to #2
https://github.com/goodmami/mrs-to-penman/blob/5939e421cd789a11338ad0aa045d9830e49c33be/mrs_to_penman.py#L73-L101
Hi @goodmami , it looks like the code for
read_profile
can be replaced by:Does it make sense? I didn't find in the current version of the gold profiles from ERG any reference to the
p-results
relation.