项目作者: susantabiswas

项目描述 :
Text Article generator using using Character level LSTM network.
高级语言: Python
项目地址: git://github.com/susantabiswas/Article-Generator.git
创建时间: 2018-03-03T06:36:25Z
项目社区:https://github.com/susantabiswas/Article-Generator

开源协议:MIT License

下载


Article Generator

Text Article generation using LSTM network. Character level Language model has been implemented for the sequence generation task.
The model was trained on Sonnets written by Shakespeare for 60 epochs. Better results can be achieved by training it for more number of epochs.

Output snapshots for Shakespeare:


shakespeare


Another output for Linux kernel dataset:


linux

It generates pretty good results although the model was trained only for 50 epochs with a large batch size of 5000. Better results can be achieved by training it for more number of epochs and reducing the batch size to 128 or less.


Model Demo

demo

Credits

The code is heavily based on https://github.com/keras-team/keras/blob/master/examples/lstm_text_generation.py