Text generation using a RNN (LSTM) using Tensorflow.
To train the model:
-
Set the textfile you want to use to train the network in the code ("with open('data/shakespeare.txt', 'r') as f:")
-
$ python rnn_tf.py
-
Run the network with the starting prefix you want to use to generate text: $ python rnn_tf.py saved/model.ckpt "The "