spacy.load() with custom components ---please ignore. Error was caused by other issue/// #12042
Replies: 2 comments 2 replies
-
Hi @python3Berg ,
Yes these should be retained in the trained model. To sanity check, you need to refer to your custom components in the registry. Ideally the registered names should be in the final / saved configuration file.
This really depends on how you set up your tokenizer. If you're modifying the tokenizer directly (e.g., |
Beta Was this translation helpful? Give feedback.
-
The custom component is in the model-best -> config.cfg. When I do spacy.load() to use in microservice, there are no errors logged. I do not see any of the code anywhere in the model-best directory so I am curious how this all works. Have the various prefixes and suffixes been incorporated into binary model? No errors is generally positive, but never definitive. I could do an import in the service that launches Additionally, this question was asked another way in different discussion and answered is somewhat different way... Hello, After you train your model, no custom code will be built-in unless you use spacy package and add the --code parameter referencing your scripts. Another way is to import the custom code to your script when you use spacy.load on trained directories (e.g. ./model-best). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Big dumb question. Do the custom components used during training and passed through --code get retained by trained model? If a custom tokenizer is defined during training and subsequently spacy.load(...) is used to deploy, will default or custom tokenizer be used? I see no reference to the custom component in the model directory, but the model loads without error.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions