HqWei / Sentiment-Analysis

Sentiment Analysis with Word Embedding and Long Short Term Memory Approaches

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Sentiment Analysis with Word Embedding and Long Short Term Memory Approaches


Languages

Language:Python 100.0%