Skip to content
Discussion options

You must be logged in to vote

It's hard to know for sure without more info about the pipeline config and your custom code.

If your ner has an internal tok2vec model (vs. listening to separate tok2vec component), then its weights should be updated in this loop.

If you have a separate tok2vec component (which is the pipeline design you'd get from the quickstart or init config), then it won't be updated because you've disabled it in this context with nlp.disable_pipes.

In general, we strongly recommend using spacy train instead of a custom training loop like this. If you want to do it programmatically, spacy train is just a CLI wrapper around training methods that you can call directly if you wish.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nikita-galileo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
training Training and updating models feat / pipeline Feature: Processing pipeline and components
2 participants