Skip to content

alexeyev/CNN-for-Sentence-Classification-in-Keras

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convolutional Neural Networks for Sentence Classification

Training convolutional network for classification tasks.

Based on "Convolutional Neural Networks for Sentence Classification" by Yoon Kim, link. Inspired by Denny Britz article "Implementing a CNN for Text Classification in TensorFlow", link.

Code is a fork of this implementation link

What's different in this fork

  • Python3
  • a focus on reusing pretrained word vectors
  • a few code-decomposition-related modifications
  • using argparse for remote configurable execution
  • trying to implement configuration as close to the one in the paper as possible (comments are welcome)
  • methods for working with datasets in a standard .csv (text, class_label) format

TODO

  • L2 regularization
  • ...

Dependencies

Code is easily portable to keras/Theano, Tensorflow-specific code is only in the GPU usage configuration part

About

based on paper "Convolutional Neural Networks for Sentence Classification" by Yoon Kim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%