xnuohz / TextCNN

Tensorflow implementation of "Convolutional Neural Networks for Sentence Classification"

Repository from Github https://github.comxnuohz/TextCNNRepository from Github https://github.comxnuohz/TextCNN

TextCNN

Tensorflow implementation of "Convolutional Neural Networks for Sentence Classification"

model

Requirements

  • python 3.6
  • tensorflow 1.12.0
  • tqdm 4.28.1
  • click 7.0
  • YAML

Usage

  • preprocess
python -m cnn.preprocess --data-cnf ../config/dataset/rt-polarity.yaml
  • training
python -m cnn.main --data-cnf ../config/dataset/rt-polarity.yaml --model-cnf ../config/model/CNN.yaml

Result

terminal

Reference

About

Tensorflow implementation of "Convolutional Neural Networks for Sentence Classification"


Languages

Language:Python 100.0%