skip-thoughts.torch
skip-thoughts.torch copied to clipboard
Porting of Skip-Thoughts pretrained models from Theano to PyTorch & Torch7
Hi, Can you please tell me, how can I extract a single feature vector given a sentence in textual form or a list of word2vec vectors. Thanks
 I am using python 3.6 and stack overflow solutions arent't solving the problem.Need Guidance .
#4 line 135 in skip-thoughts.torch/pytorch/skipthoughts/skipthoughts.py lengths = list(max_length - input.data.eq(0).sum(1).squeeze()) will raise an error if the batch size is 1, saying ``typeError: iteration over a 0-d tensor''
line 135 in skip-thoughts.torch/pytorch/skipthoughts/skipthoughts.py ```lengths = list(max_length - input.data.eq(0).sum(1).squeeze())``` will raise an error if the batch size is 1, saying ``typeError: iteration over a 0-d tensor''
The original decoder from Kiros is here: https://github.com/ryankiros/skip-thoughts/tree/master/decoding How would this be implemented in this repo?