huggingface / torchMoji

😇A pyTorch implementation of the DeepMoji model: state-of-the-art deep learning model for analyzing sentiment, emotion, sarcasm etc
MIT License
917 stars 190 forks source link

ValueError: too many values to unpack (expected 2) #24

Closed agoel00 closed 5 years ago

agoel00 commented 5 years ago

I'm trying to get 2304 fixed length vector embeddings for a set of tweets for my dataset.

I'm using Google Colaboratory(Python 3) and I get this error with this command

!python3 examples/text_emojize.py --text f"This is the shit!"

as well as using this

encoding = model(tokenized)

sb1992 commented 5 years ago

Did you mange to solve this?

agoel00 commented 5 years ago

I was able to bypass this issue by downgrading the PyTorch version in Google Colab environment. Apparently it doesn't work with Pytorch 1.1 which Colab provides currently.

Downgrading to 1.0.1 seems to solve the problem.