How to retrain the NER and Relational model from last checkpoint? #9725
-
Hi, Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @karndeepsingh , When you first train via spaCy, you'd always get the [components.ner]
source = "./output/model-last" # or model-best
[components.tok2vec]
source = "./output/model-last" # or model-best Note that, it won't always be 100% equivalent because the rest of the training settings (like the optimizer, batcher, etc.) will be reset. |
Beta Was this translation helpful? Give feedback.
-
Thanks For answering. I will do the changes. I have one more query please help me to understand. I have been trying to train NER+ RELATION model together and I am getting the following error shown below, please help me to understand what is the problem and what needs to change? Thanks again. |
Beta Was this translation helpful? Give feedback.
Hi @karndeepsingh ,
When you first train via spaCy, you'd always get the
model-best
andmodel-last
in the output directory that you supplied. If you want to resume training from them, you can supply their paths to thesource
parameter of your components in the configuration file. Something like this:Note that, it won't always be 100% equivalent because the rest of the training settings (like the optimizer, batcher, etc.) will be reset.