LB-Yu / TextCNN-keras

Text CNN for text classification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Text CNN for text classification

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 100.0%