A pytorch implemention of "Sentiment Analysis by Capsules"
- python 3.7
- pytorch
- torchtext
- nltk
- spacy
git clone https://github.com/wangjiosw/Sentiment-Analysis-by-Capsules.git
cd Sentiment-Analysis-by-Capsules
bash download.sh
python pre.py
python Train.py
best accuracy: 71.04%