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

Transfer Learning using Save_and_Load.py #51

Open
Mahmedturk opened this issue Sep 24, 2019 · 2 comments
Open

Transfer Learning using Save_and_Load.py #51

Mahmedturk opened this issue Sep 24, 2019 · 2 comments

Comments

@Mahmedturk
Copy link

Mahmedturk commented Sep 24, 2019

Hi @nreimers

I have tried to use Save_and_Load.py for pre-training on a bigger dataset and after reloading training on a smaller set. But it seems that Save_and_Load.py only works for the same dataset. Like you train for few epoch on a dataset, then save the model and then continue training the new loaded model. Because if i use new dataset after loading pre-existing model it throws a Key-Error. Is this how it is supposed to be working?

@nreimers
Copy link
Member

Are the labels / tags the identical between the two datasets?

If not, continuing training is much more challenging, as the CRF no longer fits. There, you would need to replace the CRF layer with a new layer for your dataset. This is not support right now in this framework.

@Mahmedturk
Copy link
Author

Yes the labels are exactly the same (BIO tagged). I even have tried continuing training by making a copy of first dataset, it still produces the key-error.

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

2 participants