sentiment-analysis
sentiment-analysis copied to clipboard
Using tensorflow to do sentiment analysis based on the IMDB
``` for line in file: line = line.lower().encode('utf-8') words = line.split() for word in words: word = word.translate(None, string.punctuation) if word != '': allWords.append(word) ``` 这段代码,的`word.translate(None, string.punctuation)`一句,报TypeError: a bytes-like object...
^_^能不能再加一下~
`Run id: X2GQ7H Log directory: /tmp/tflearn_logs/ --------------------------------- Training samples: 25 Validation samples: 17 -- Training Step: 1 | time: 4.402s | Adam | epoch: 001 | loss: 0.00000 - acc:...