goodbai-nlp / AMRBART

Code for our paper "Graph Pre-training for AMR Parsing and Generation" in ACL2022
MIT License
92 stars 28 forks source link

Is there a way to convert the generated AMRs to the original format? #26

Open xiulinyang opened 5 months ago

xiulinyang commented 5 months ago

Hi I was just wondering if there is a way to convert the generated AMR (with pointer: 1, 2, ...) to the conventional AMRs (p1/ person ...). I checked the AMR process repository, but the post-processing.py only provides a few functions without detailing how to use them. Should I do it by myself? Or is there something I'm missing here? Thanks a lot!

xiulinyang commented 5 months ago

I have one more question: How do you deal with ill-formed AMRs? I find that sometimes the number connects with the relations like :mod1234.