Converting Spacy Sentence Embeddings Back to Text #11782
Answered
by
polm
mbdzi
asked this question in
Help: Coding & Implementations
-
My questions:
My code thus far:
Otherwise, thank you Ines and team for creating a great product! |
Beta Was this translation helpful? Give feedback.
Answered by
polm
Nov 10, 2022
Replies: 1 comment
-
No, the transformation to vectors is not reversible, or designed to be so. For pipelines like If you have saved a bunch of documents and their vectors, you can query for the most similar vector and then get the string attached to that. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adrianeboyd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, the transformation to vectors is not reversible, or designed to be so.
For pipelines like
en_core_web_lg
the document vector is an average of token vectors, so it's the same even if you re-order the text, for example.If you have saved a bunch of documents and their vectors, you can query for the most similar vector and then get the string attached to that.