Download NgramCNN HERE (Chainer version).
Python 2.7 is required for NgramCNN.
Besides, following libs are needed:
Both these libs can be downloaded from their website (just google
them) or installed by pip.
$pip install numpy futures itertools_recipes six chainer
NgramCNN can be executed in demo mode by
Note that we developed and tested these codes in MacOS and
Windows OS may not support some OS commands and you can just remove
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