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

Missed the function of saving the new training model #9

Open
liuenda opened this issue Sep 10, 2016 · 2 comments
Open

Missed the function of saving the new training model #9

liuenda opened this issue Sep 10, 2016 · 2 comments

Comments

@liuenda
Copy link

liuenda commented Sep 10, 2016

Hi. Here is some suggestion about your code.
Although in the example3.py, it seems you intend to train a new model with the new file name "new.p" but in the end, this "new.p" will never be created or saved. If possible, could do please add the function within several lines to make the new model to be saved after a new training process. I am also working on it but it seems still need more time for me. Just a suggestion. If possible, I am expecting to see your new version.

Thank you very much!

@jnAILab
Copy link

jnAILab commented May 11, 2017

I also don't solve this problem.....

@jonzarecki
Copy link

jonzarecki commented Dec 12, 2017

Saving the model with pickle basically works, you just need to enlarge the recursion limit in python for it.

sys.setrecursionlimit(5000)  # avoid limit-exceeded when pickling
pickle.dump(sls, open("newp.p", "wb"))  # sls is the model object from example3.py

Also the saving method used in bestsem.p is available in my fork https://github.com/yonilx/LSTM-Sentence-Similarity

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