/TextCNN-keras

Text CNN for text classification

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

TextCNN-keras

This repo is a simple keras implementation of Convolutional Neural Networks for Sentence Classification, also you can watch more details in A Sensitivity Analysis of (and Practitioners' Guide to) Convolutional Neural Networks for Sentence Classification).

Requirements

To run the jupyter notebook, you need to install the following packages firstly.

  • gensim
  • numpy
  • keras
  • sklearn

Reproduct the results in the original paper.

1.Download the pre-train word2vec here, and decompression the file to the root dir(./TextCNN-keras).
2.Just open the jupyter notebook and run the cells in TextCNN-keras.ipynb.