Open harbarex opened 5 years ago
--------------------------------------------------------------------------- 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