Movie-Review-Sentiment-Analysis-LSTM-Pytorch
Movie-Review-Sentiment-Analysis-LSTM-Pytorch copied to clipboard
I think there is abug in this line
https://github.com/lukysummer/Movie-Review-Sentiment-Analysis-LSTM-Pytorch/blob/master/sentiment_analysis_LSTM.py#L35
word_list = sorted(word_counts, keys = word_counts.get, reverse = True)
should be
word_list = sorted(word_counts, key = word_counts.get, reverse = True)