Learn practical skills, build real-world projects, and advance your career

Shakespeare Text Generation (using RNN LSTM)

Experiment overview

In this experiment we will use character-based Recurrent Neural Network (RNN) to generate a Shakespeare's-like text based on the Shakespeare dataset from The Unreasonable Effectiveness of Recurrent Neural Networks blog post.

For this experiment we will use Tensorflow v2 with its Keras API.

text_generation_shakespeare_rnn.jpg

Import dependencies

# Selecting Tensorflow version v2 (the command is relevant for Colab only).
# %tensorflow_version 2.x