Switch branches/tags
Nothing to show
Find file History
Latest commit 798418b Apr 24, 2017
Failed to load latest commit information.
data update to keras 2.0 Apr 24, 2017
README.md update README Jan 18, 2017
char_generator.py add char LM demo Jan 17, 2017
char_lm_gcnn.py update to keras 2.0 Apr 23, 2017
gcnn.py update to keras 2.0 Apr 23, 2017
imdb_generator.py Initial commit Dec 28, 2016
imdb_lm_gcnn.py update to keras 2.0 Apr 23, 2017


Toy Keras example using Gated Convoluational Networks for language model on IMDB datasets.

Note: Only work for tensorflow backend, see issue 1.

Prepare data

change current directory to data, and follow the instuctions in imdb_preprocess_semi.py.


Word LM

python imdb_lm_gcnn.py

Charactor LM

python char_lm_gcc.py