openai / generating-reviews-discovering-sentiment

Code for "Learning to Generate Reviews and Discovering Sentiment"
https://arxiv.org/abs/1704.01444
MIT License
1.51k stars 379 forks source link

Invalid literal #54

Open peddinti opened 6 years ago

peddinti commented 6 years ago

When I am trying to run the example. But i am facing this issue at this line

xmb[i, -l:] = list(x)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid literal for long() with base 10: '\n'
yashkumaratri commented 6 years ago

Can you provide your system environment and the input?

hiteshsapkota commented 6 years ago

I got the same problem. In my case, it occurred because the length of my sentence was greater than the mentioned nsteps in the code