# Sentiment-Analysis-by-Capsules **Repository Path**: liugj101/Sentiment-Analysis-by-Capsules ## Basic Information - **Project Name**: Sentiment-Analysis-by-Capsules - **Description**: A pytorch implemention of "Sentiment Analysis by Capsules" - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-27 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # RNNCapsule A pytorch implemention of "Sentiment Analysis by Capsules" # Environment - python 3.7 - pytorch - torchtext - nltk - spacy # Download project ```bash git clone https://github.com/wangjiosw/Sentiment-Analysis-by-Capsules.git cd Sentiment-Analysis-by-Capsules ``` # Get Movie Review Data ```bash bash download.sh ``` # Load data and store as ".csv" format ```python python pre.py ``` # train ```python python Train.py ``` # result best accuracy: 71.04% # not completed yet