Latest Version
Download NgramCNN HERE (Chainer version).
Enverionment
Python 2.7 is required for NgramCNN.
Besides, following libs are needed:
-chainer
-numpy
-itertools-recipes
-futures
-six
Both these libs can be downloaded from their website (just google
them) or installed by pip.
$pip install numpy futures itertools_recipes six chainer
DEMO
NgramCNN can be executed in demo mode by
$python ngramcnn_tuning.py
Note that we developed and tested these codes in MacOS and
Ubuntu.
Windows OS may not support some OS commands and you can just remove
those codes.
In default, the GPU is required.
Nvidia GeForce 1080 and titanX are suggested configuration.
If you want to try the CPU mode, even though not suggested, you can
set the gpu=False in ngramcnn.py