-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Cant load model after adding custom component in pipeline #1984
Comments
Also having the same issue with default en_core_web_lg/sm. |
Sorry for only getting to this now. The reason you're seeing this error is because spaCy doesn't have a built-in factory for your component. When the model is loaded, spaCy will check the Language.factories['my_component'] = lambda nlp, **cfg: MyComponent(nlp, **cfg) For more details, check out this thread over on the Prodigy forum where I share a full code example of a model's Once the new matcher is implemented in |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi, I trained a NER from scratch with custom dataset without any other component in pipeline. I loaded the model and added another component(Phrase Matcher) to existing pipeline and trained NER again.Now I cant load the new saved model.
Your Environment
The text was updated successfully, but these errors were encountered: