Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training #2

Closed
mdtux89 opened this issue May 16, 2016 · 11 comments
Closed

Training #2

mdtux89 opened this issue May 16, 2016 · 11 comments

Comments

@mdtux89
Copy link

mdtux89 commented May 16, 2016

Hi, is there a way to train the parser on a different dataset?
Thanks,
Marco

@Juicechuan
Copy link
Member

Yes. You could train the parser using the following command:
python amr_parsing.py -m train --model path_to_save_model --iter N [-d path_to_amr_dev_file] --amrfmt path_to_amr_training_file > log/train.log

But before you start training the parser, make sure you get all the preprocess files and the aligned amr file ready.

Chuan

@mdtux89
Copy link
Author

mdtux89 commented May 16, 2016

Thanks!

@mdtux89
Copy link
Author

mdtux89 commented May 17, 2016

For preprocess files you mean running this
python amr_parsing.py -m preprocess [input_sentence_file]
on the sentences, right?

@Juicechuan
Copy link
Member

Yes.

@mdtux89
Copy link
Author

mdtux89 commented Jun 3, 2016

Hi Chuan, I can't save the trained model because of this exception (which is raised in model.py at line 338): Saving model error <type 'exceptions.ValueError'>

Do you have any idea of what causes this problem?

Marco

@IceIceRabbit
Copy link

IceIceRabbit commented Jun 24, 2016

Hey,
It would be great if anyone could share a solution to the saving model error.
Thanks

@mdtux89
Copy link
Author

mdtux89 commented Jun 24, 2016

From what I could gather, it's a python bug that is fixed only in python 3.0.

http://bugs.python.org/issue11564

They were discussing it here too: numpy/numpy#2396

@Juicechuan
Copy link
Member

Juicechuan commented Jun 24, 2016

I've updated the parser to the newest version, which should not have saving model error. The problem is python2's bug, however it turns out the initial shape of the weight matrix is too big and the current version use a small initial parameter.

@IceIceRabbit
Copy link

Thanks for the update

@IceIceRabbit
Copy link

Hey would it be possible to update the readme?

@Juicechuan
Copy link
Member

@IceIceRabbit Hi, I've update the readme, feel free to comment for further problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants