Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

ValueError: all the input array dimensions except for the concatenation axis must match exactly #121

Open
harbarex opened this issue Apr 18, 2019 · 0 comments

Comments

@harbarex
Copy link

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-163-7ef420f7ad59> in <module>
      1 #embedding, sentence_encodings, final_state = model.encode(['Animesh is a very good person', 'He is very intelligent'], tokenize=False)
----> 2 embeddings = infersent.encode(sentences, tokenize=True)

~\Desktop\T2F-master\implementation\networks\InferSent\encoder\models.py in encode(self, sentences, bsize, tokenize, verbose)
    244         embeddings = np.vstack(embeddings)
    245         #encodings.shape() = (4096)
--> 246         encodings = np.concatenate(encodings, axis=1)
    247        # encodings.shape = (4096)
    248         encodings = np.transpose(encodings, axes=(1, 0, 2))

ValueError: all the input array dimensions except for the concatenation axis must match exactly
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant