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

Code for sub-graph level denoising #20

Open Sreyan88 opened 1 year ago

Sreyan88 commented 1 year ago

Hi there!

Great work. I wanted to request the code for sub-graph level denoising. Given an AMR graph, how are you masking an entire subgraph? I found you using this: https://github.com/goodbai-nlp/AMRBART/blob/main/pre-train/common/utils.py#L143, however, this just randomly deletes tokens in a span. Is there any other implementation available? Thank You!

goodbai-nlp commented 1 year ago

Hi, @Sreyan88

Please refer to this repository for a offline version of graph masking. By the way, we did not find significant improvements when applying offline graph masking.