Movie-Review-Sentiment-Analysis-LSTM-Pytorch icon indicating copy to clipboard operation
Movie-Review-Sentiment-Analysis-LSTM-Pytorch copied to clipboard

I think there is abug in this line

Open superryeti opened this issue 5 years ago • 0 comments

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)

superryeti avatar Nov 12 '19 07:11 superryeti