c-amr / camr

Transition-based tree-to-graph AMR Parser
GNU General Public License v2.0
125 stars 45 forks source link

SystemError when saving the model. #15

Open TigranGalstyan opened 6 years ago

TigranGalstyan commented 6 years ago

We are training on AMR2.0 train set, and starting from 2nd epoch pickle.dump in model.save_model crashes, raising 'SystemError: error return without exception set'. When training on AMR2.0 + BIO_AMR train set, the exception occurs right after the first epoch. Training only on BIO_AMR works fine. I see unused function (model.toJSON). Can it replace model.save_model and if yes, would that help in this case? Thanks

Juicechuan commented 6 years ago

You could try to uncomment this line and try saving the model again.

This toJSON method is not fully supported.