Sentiment Analysis with CNN and Long Short Term Memory Approaches in tensorflow.
Movie reviews from the Large Movie eview Dataset, sometimes known as the IMDB dataset. In this task, given a movie review, the model attempts to predict whether it is positive or negative. This is a binary classification task.
cd data direction and run the following commands.
tar -xvzf negativeReviews.tar.gz
tar -xvzf positiveReviews.tar.gz
train.py The training file.
code_test.py The test file.
test_one_review.py To judge the emotion of one review is positive or negetive.
其中npy文件: https://pan.baidu.com/s/1NgaZrA-XyA7HKHDdowHFDw 提取码: n5ya