加入CODE CHINA

· 不限速    · 不限空间    · 不限人数    · 私仓免费

免费加入
README.md

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

项目简介

🚀 Github 镜像仓库 🚀

源项目地址

https://github.com/hqwei/sentiment-analysis

发行版本

当前项目没有发行版本

贡献者 2

H HuaqiangWei @HuaqiangWei

开发语言

  • Python 100.0 %