bjascob / amrlib

A python library that makes AMR parsing, generation and visualization simple.
MIT License
219 stars 34 forks source link

Change of labels of named entities from input to AMR #54

Closed niccip07 closed 1 year ago

niccip07 commented 2 years ago

Hi,

I often experience that the labels of named entities are changed in the AMR.

For instance: ::snt Who is Uesugi Kenshin, whose competitor is Shibata Katsuie? (p / person :name (n / name :op1 "Uesugi" :op2 "Kenshin") :domain (a / amr-unknown) :ARG0-of (c / compete-01 :ARG1 (p2 / person :name (n2 / name :op1 "Shiata" :op2 "Katsuie"))))

The name of the person is Shibata, but in the graph it is Shiata. This example is generated with XFM BART large, but I also see this behaviour in other cases using the Spring model.

Is there a way to suppress this change of labels?

bjascob commented 2 years ago

No. The transformer probably learned a word like this during pre-training and now it's outputting the spelling that it learned previously. Generally, we have no control over this.

bjascob commented 1 year ago

Closing. No activity on issue for 2 months.