Skip to content

LB-Yu/TextCNN-keras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.