https://github.com/astorfi/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch
In pytorch Learing Neural Networks likes CNN(Convolutional Neural Networks for Sentence Classification (Y.Kim, EMNLP 2014) 、LSTM、BiLSTM、DeepCNN 、CLSTM、CNN and LSTM
https://github.com/astorfi/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.5%) to scientific vocabulary
Last synced: 9 months ago
·
JSON representation
Repository
In pytorch Learing Neural Networks likes CNN(Convolutional Neural Networks for Sentence Classification (Y.Kim, EMNLP 2014) 、LSTM、BiLSTM、DeepCNN 、CLSTM、CNN and LSTM
Basic Info
Statistics
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
- Releases: 0
Fork of dalinvip/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch
Created almost 8 years ago
· Last pushed almost 8 years ago
https://github.com/astorfi/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch/blob/master/
## Introduction ##
- A classification task implement in pytorch, contains some neural networks in [models](https://github.com/bamtercelboo/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch/tree/master/models).
* Recenely, I've readjusted the code structure to make it easier to read.
* The old version in the branch of [old-version-17](https://github.com/bamtercelboo/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch/tree/old_version_17), It still works directly.
* The newest version in here([master](https://github.com/bamtercelboo/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch)), It also can works directly now.
## Requirement ##
pyorch : 0.3.1
python : 3.6.1
torchtext: 0.2.1
cuda : 8.0 (support cuda speed up, can chose)
## Usage ##
modify the config file, see the Config directory([here](https://github.com/bamtercelboo/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch/tree/master/Config)) for detail.
1python main.py
2python main.py --config_file ./Config/config.cfg
## Model ##
Contains some neural networks implement in pytorch, see the [models](https://github.com/bamtercelboo/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch/tree/master/models) for detail.
## Data ##
SST-1 and SST-2.
## Result ##
I haven't adjusted the hyper-parameters seriously, you can also see train log in [here](https://github.com/bamtercelboo/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch/tree/master/result).
The following test set accuracy are based on the best dev set accuracy.
| Data/Model | % SST-1 | % SST-2 |
| ------------ | ------------ | ------------ |
| CNN-Rand | 44.1629 | 82.2076 |
| CNN | 45.4751 | 84.3453 |
| Bi-LSTM | 48.1448 | 86.8753 |
| Bi-GRU | 48.1448 | 87.3696 |
## Reference ##
- [pytorchCNN-LSTM](http://www.cnblogs.com/bamtercelboo/p/7469005.html "pytorchCNN-LSTM")
- [Convolutional Neural Networks for Sentence Classification](https://arxiv.org/pdf/1408.5882.pdf)
- [Context-Sensitive Lexicon Features for Neural Sentiment Analysis](https://arxiv.org/pdf/1408.5882.pdf)
## Question ##
- if you have any question, you can open a issue or email `bamtercelboo@{gmail.com, 163.com}`.
- if you have any good suggestions, you can PR or email me.
Owner
- Name: Sina Torfi
- Login: astorfi
- Kind: user
- Location: San Jose
- Company: Meta
- Website: https://astorfi.github.io/
- Repositories: 196
- Profile: https://github.com/astorfi
PhD & Developer working on Deep Learning, Computer Vision & NLP