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

Error with html.unescape() #24

Closed hardikmeisheri closed 7 years ago

hardikmeisheri commented 7 years ago

From what i have read, this is solved for python 3.5. It would be great if someone can suggest solution for this error in python 2.7. Also please post requirements in a text file to help understand which versions are needed.

fedorzh commented 7 years ago

text = HTMLParser.HTMLParser().unescape(text)

fedorzh commented 7 years ago

Apparently this doesn't work #3