/Sentiment-Analysis-by-Capsules

A pytorch implemention of "Sentiment Analysis by Capsules"

Primary LanguagePython

RNNCapsule

A pytorch implemention of "Sentiment Analysis by Capsules"

Environment

  • python 3.7
  • pytorch
  • torchtext
  • nltk
  • spacy

Download project

git clone https://github.com/wangjiosw/Sentiment-Analysis-by-Capsules.git
cd Sentiment-Analysis-by-Capsules

Get Movie Review Data

bash download.sh

Load data and store as ".csv" format

python pre.py

train

python Train.py

result

best accuracy: 71.04%

not completed yet