This code belongs to the "Implementing a CNN for Text Classification in Tensorflow" blog post.
It is slightly simplified implementation of Kim's Convolutional Neural Networks for Sentence Classification paper in Tensorflow.
python3
Train: python train_without_summary.py
本项目是依据于text_cnn,在其基础上添加了lstm,双向lstm等。 运行相关模型请在text_cnn.py中打开相关注释
./eval.py --eval_train --checkpoint_dir="./runs/1459637919/checkpoints/"
- Convolutional Neural Networks for Sentence Classification
- A Sensitivity Analysis of (and Practitioners' Guide to) Convolutional Neural Networks for Sentence Classification
https://www.jianshu.com/p/4fbc4939509f 里面有attention的实现