/CNN-Text-Classification

Keras implementation of 'Convolutional Neural Networks for Sentence Classification. EMNLP 2014. Y. Kim.

Primary LanguagePython

Description

Keras implementation of 'Convolutional Neural Networks for Sentence Classification. EMNLP 2014. Y. Kim. A two channel CNN model is built and trained.

Usage

Various paramters are stored using 'configuration.py'. Simply edit 'main()' function in m'main.py' for the task you want, and run using 'python main.py'.

Data source path:

'configuration.py' has variables to hold path to data sources (data_src) and pretrained word embeddings (embeddings_src).