/Sentiment-Analysis

Sentiment Analysis with Word Embedding and Long Short Term Memory Approaches

Primary LanguagePython

Sentiment Analysis with Word Embedding

Introduction

Sentiment Analysis with CNN and Long Short Term Memory Approaches in tensorflow.

Datasets

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.

Downloading Data

cd data direction and run the following commands.

tar -xvzf negativeReviews.tar.gz

tar -xvzf positiveReviews.tar.gz

How to use

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