Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: not enough values to unpack (expected 2, got 0) #10

Open
gnana997 opened this issue Sep 14, 2017 · 2 comments
Open

ValueError: not enough values to unpack (expected 2, got 0) #10

gnana997 opened this issue Sep 14, 2017 · 2 comments

Comments

@gnana997
Copy link

Traceback (most recent call last):
File "twitter-sentiment-cnn.py", line 147, in
x, y, vocabulary, vocabulary_inv = load_data(FLAGS.reduced_dataset)
File "C:\Users\gnana\Desktop\twitter-sentiment-cnn\data_helpers.py", line 166, in load_data
vocabulary, vocabulary_inv = build_vocab()
File "C:\Users\gnana\Desktop\twitter-sentiment-cnn\data_helpers.py", line 119, in build_vocab
vocabulary = {x:i for x, i in voc}
File "C:\Users\gnana\Desktop\twitter-sentiment-cnn\data_helpers.py", line 119, in
vocabulary = {x:i for x, i in voc}
ValueError: not enough values to unpack (expected 2, got 0)

@danielegrattarola
Copy link
Owner

Can you give me a little more details on how to reproduce this?
By looking at the stack trace it's probably a setup error, make sure to follow the installation instructions in the README.

@shineangelic
Copy link

I could solve this removing blank lines in vocab.csv and vocab_inv.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants