Skip to content

Trouble running Spacy - Cannot set unknown dimension 'nO' for model 'layernorm'. #8284

Discussion options

You must be logged in to vote

Ah, I thought I recognized this question, it was on StackOverflow.

I commented there, but for completeness:

  1. The way you are installing the model is a bit strange. Just the spacy download command should install the model, you should not need to call pip. Can you try your code again in a clean environment?
  2. spacy-langdetect is an unofficial third-party package that hasn't been updated in years and only works with spaCy 2. Maybe your code only works with spaCy v2?
  3. Can you load the spaCy model outside this particular project you're working on? If you can't this is an environment issue, if you can this is an issue with your code; knowing which it is will help us help you.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Installation issues third-party Third-party packages and services
2 participants