-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Model not saved after training #99
Comments
@stefan-it You are right!! Actually I installed with pip, but I was looking at the codes on the git repository (the most recent version!), and in fact my version has that save_model = False! So I guess instead of installing through pip, I should git clone from master branch. |
Exactly, you can clone the |
thanks @stefan-it ! Will try that! :-) |
@iamyihwa It's probably better to split the document into sentences and use a larger mini-batch-size. We find that a mini-batch-size of 16 or 32 generally works best if you have enough data. Also, I note that So, better use: trainer = SequenceTaggerTrainer(tagger, corpus, test_mode=False) Or leave out the |
@alanakbik thanks!!! |
I have trained a NER however there was no model saved after the training was completed.
From what I have seen in sequence_tagger_trainer.py, save_model = True by default, and I didn't give any change to that.
SequenceTagger and SequenceTaggerTrainer were used.
This is the part of codes used to train.

trainer.train('resources/taggers/poa-ner', learning_rate=0.1, mini_batch_size=2, max_epochs=20)
When I look at the content of the directory where I saved the training data, there is no model which ends in .pt.
For this case, I had to reduce the mini_batch_size = 2, because the sentence was very very long. ( About 3000 words long each. In fact it was a whole document, because in this document, there are dependencies between sentences, so our teammate wanted to put it together.. I don't know if using whole document as a sentence is a good idea or not.. any ideas on that also? ). I wonder if this could have been the cause of the problem?
The training seems to have completed okay ..

The text was updated successfully, but these errors were encountered: