mrs83 / RNN_Text_Generation_Tensorflow

Text generation using RNN (LSTM) implemented using Tensorflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text generation using a RNN

Text generation using a RNN (LSTM) using Tensorflow.

Usage

To train the model you can set the textfile you want to use to train the network by using command line options:

Run the network in train mode:

$ python rnn_tf.py --input_file=data/shakespeare.txt --ckpt_model="saved/model.ckpt" --mode=train

Run the network to generate text:

$ python rnn_tf.py --input_file=data/shakespeare.txt --ckpt_model="saved/model.ckpt" --test_prefix="The " --mode=talk

About

Text generation using RNN (LSTM) implemented using Tensorflow

License:Apache License 2.0


Languages

Language:Python 100.0%