"The model you're using has no word vectors loaded"- Even though all my tokens do have a vector representation #10799
-
Hello :) Also the result performs realy bad. I get the same output as i am creating the top10 matches randomly. The result using the [de_core_news_lg]-spacy library performs much better even though all the important words are missing in there. Do you have any idea what might cause this problem? Thank you so much in advance. Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you're using spacy v3.2, you can get an incorrect Be aware of the notes here about floret vectors: https://spacy.io/usage/v3-3#upgrading It's hard to know what's going for sure without a concrete example including the model vectors. Just to make sure something didn't go wrong on import (although I think you should get an error with I tried out some simple cases with import spacy
nlp = spacy.load("fi_core_news_md")
nlp("paikka").similarity(nlp("paikkaa")) # 0.5902148855603732 |
Beta Was this translation helpful? Give feedback.
If you're using spacy v3.2, you can get an incorrect
W007
warning even if you have floret vectors, but if you're using v3.3+, this may mean that your vectors weren't initialized/loaded correctly. I hope you meantspacy.load(my_vector_folder)
and notnlp(my_vector_folder)
?Be aware of the notes here about floret vectors: https://spacy.io/usage/v3-3#upgrading
It's hard to know what's going for sure without a concrete example including the model vectors. Just to make sure something didn't go wrong on import (although I think you should get an error with
spacy init vectors --mode floret
if the format was incorrect), double-check thatnlp.vocab.vectors.mode
is'floret'
?I tried out some simple…