skip-thoughts.torch icon indicating copy to clipboard operation
skip-thoughts.torch copied to clipboard

Porting of Skip-Thoughts pretrained models from Theano to PyTorch & Torch7

Results 7 skip-thoughts.torch issues
Sort by recently updated
recently updated
newest added

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

![screenshot 2018-11-10 20 54 15](https://user-images.githubusercontent.com/25264845/48303370-22807b00-e52b-11e8-89fe-de7f5e86d06e.png) 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?