Repository navigation
Is it possible to extract word/sentence from vector? #5349
Answered
by
adrianeboyd
saahiluppal
asked this question in
Help: Coding & Implementations
|
can we convert vector back to it's corresponding word in spaCy? |
Answered by
adrianeboyd
Apr 27, 2020
Replies: 1 comment
|
You can use Vectors.most_similar to find the word(s) closest to a given vector. In a loaded model, you can access the vectors under (I just noticed that the example in the docs uses |
0 replies
Answer selected by
ines
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use Vectors.most_similar to find the word(s) closest to a given vector. In a loaded model, you can access the vectors under
nlp.vocab.vectors, so:(I just noticed that the example in the docs uses
nlp.vectorsinstead ofnlp.vocab.vectors. We'll get that updated.)