Problem with prediction "ValueError: Cannot get dimension 'nO' for model 'sparse_linear': value unset" after load text to nlp #13323
Unanswered
arioslock
asked this question in
Help: Coding & Implementations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm encountering an issue with a spaCy model trained from a config file. I've successfully trained, evaluated, and saved the model. However, when attempting to load text into the nlp component for prediction, I encounter the following error:
Copy code ValueError: Cannot get dimension 'nO' for model 'sparse_linear': value unset
`
`
I've searched extensively for a solution but haven't found one. Could anyone provide insight into what might be causing this error and how it can be resolved?
After running ! python -m spacy evaluate ./model/model-best/ ./test.spacy, I receive results along with the following UserWarning:
UserWarning: [W095] Model 'en_pipeline' (0.0.0) was trained with spaCy v3.6.1 and may not be 100% compatible with the current version (3.7.2). If you see errors or degraded performance, download a newer compatible model or retrain your custom model with the current spaCy version. For more details and available updates, run: python -m spacy validate
However, this is a freshly trained model with a fresh configuration file. When I execute ! python -m spacy validate, I get:
`
`
I believe this could be the root of the problem, but I consistently encounter the same user warning after training, indicating that I'm unable to obtain a model trained with spaCy 3.7.2.
Beta Was this translation helpful? Give feedback.
All reactions