CNN and RNN with Attention for Text Classification in Tensorflow
- Python 3
- Tensorflow 1.0
- Scikit-learn
- Numpy
- Pandas
CNN:
python train_cnn.py
RNN:
python train_rnn.py
python eval.py --checkpoint_dir=./runs/textrnn/trained_result_1512462690/checkpoints --model_type=RNN
If evaluation data has labels, has_label
should be set to True
.