- Notifications
You must be signed in to change notification settings - Fork0
Pytorch implementation of Sentiment Classification in Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks
License
flypythoncom/TreeLSTMSentiment
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
12/16/2019
fix to pytorch >=1.0.0
APyTorch based implementation of Tree-LSTM from Kai Sheng Tai's paperImproved Semantic Representations From Tree-Structured Long Short-Term MemoryNetworks.
- PyTorch Deep learning library
- tqdm: display progress bar
- meowlogtool: a logger that write everything on console to file
- Java >= 8 (for Stanford CoreNLP utilities)
- Python >= 3
First run the script./fetch_and_preprocess.sh
hints: you should set java bin in $PATH to runjavac
This downloads the following data:
- Stanford Sentiment Treebank (sentiment classification task)
- Glove word vectors (Common Crawl 840B) --Warning: this is a 2GB download!
and the following libraries:
python sentiment.py --name <name_of_log_file> --model_name <constituency|dependency> --epochs 10We have not fully test on fine grain classification yet. Binary classification accuracy on both model are the same in original paper.
Kai Sheng Tai for theoriginal LuaTorch implementation
Pytorch team for Python library
Riddhiman Dasgupta for his implement on sentiment relatednesshttps://github.com/dasguptar/treelstm.pytorch which I based on as starter code.
MIT
About
Pytorch implementation of Sentiment Classification in Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Python81.8%
- Java17.8%
- Shell0.4%