You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
I am using infersent to embed sentences. Also at some point i want to decode embedding back to sentence. i tried infersent.decode(sentences) and got following error.
AttributeError: 'InferSent' object has no attribute 'decode'
is there an API to decode embedding to sentence with infersent?
The text was updated successfully, but these errors were encountered:
I am not sure what you mean by decoding sentences. Do you mean you want to recover the original sentence from the embeddings? If so that is not possible since encoding is a many-to-one function, meaning many sentences can have very similar embeddings.
Additionally the model was trained on a SNLI task rather than some sort of sequence to sequence model so it only has encoder weights.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using infersent to embed sentences. Also at some point i want to decode embedding back to sentence. i tried infersent.decode(sentences) and got following error.
AttributeError: 'InferSent' object has no attribute 'decode'
is there an API to decode embedding to sentence with infersent?
The text was updated successfully, but these errors were encountered: