Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 725 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 725 Bytes

Convolutional Neural Networks for Sentence Classification

This is Chainer based implemantation for Convolutional Neural Networks for Sentence Classification.

Requirements

Code is written in Python 3.5 and requires Chainer and Common-ML.

Using the pre-trained word2vec vectors will also require downloading the binary file from here.

Install the following modules:

pip install chainer
pip install common-ml

Data Preprocessing

To process the raw data, run

python main.py vectorize

Running the models

To process cross validation, run

python main.py cv

Configuration file

See config.xml.