Skip to content

Latest commit

 

History

History
executable file
·
34 lines (28 loc) · 492 Bytes

README.md

File metadata and controls

executable file
·
34 lines (28 loc) · 492 Bytes

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