Skip to content

Sentiment Analysis with Word Embedding and Long Short Term Memory Approaches

Notifications You must be signed in to change notification settings

HqWei/Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages