Amazing-J / structural-transformer

Code corresponding to our paper "Modeling Graph Structure in Transformer for Better AMR-to-Text Generation" in EMNLP-IJCNLP-2019
75 stars 8 forks source link

Sub-word AMR #6

Closed dungtn closed 5 years ago

dungtn commented 5 years ago

Hi @Amazing-J ,

Again thank you for releasing the code. I have a question regarding the sub-word AMR.

In case the original word doesn't have an in-coming edge, how should we encode the AMR for the corresponding subword, e.g., the word "adjust" => "ad@@ ju@@ st" in the following example?

(a / ad@@ ju@@ st-01 :ARG0 (g / girl@@ ) :ARG1 (m / mach@@ ine))

Thank you!

Amazing-J commented 5 years ago

I think you just need to give it a specific label. e.g., "root" or "bpe".