zhangzx-uiuc / AMR-IE

The code repository for AMR guided joint information extraction model (NAACL-2021).
35 stars 8 forks source link

Problem loading pretrained model #6

Open TrinaDutta95 opened 2 years ago

TrinaDutta95 commented 2 years ago

I have followed the installation guide and I am getting this error upon creating the parser(>>> parser = AMRParser.from_checkpoint(in_checkpoint) )

AssertionError: Model trained with v0.3.0 or above?

zhangzx-uiuc commented 2 years ago

Hi, sorry for the late reply. This error usually comes out when the model path is incorrect. Can you double-check to make sure the path to the model is correct? Note that you have to use the absolute path instead of the relative path.