Skip to content

Clean and prepare Shakespeare's Sonnets to train a LSTM neural network on. Given a prompt of a few words as input, its task is to generate follow-on text that reads like a line from a Shakespearean Sonnet

Notifications You must be signed in to change notification settings

ErinNC/Shakespeare_Sonnet_Generator

Repository files navigation

Shakespeare Sonnet Generator

Purpose

Our goal in this project is to build a Shakespeare Sonnet Generator using a recurrent LSTM neural network. More specifically, we will use deep learning libraries, TensorFlow and Keras, to build a Sequential model that will predict the next character from a sequence of characters.


A large portion of this project focuses on cleaning the text data and preparing it for our neural network. We then used the cleaned text to build and train our deep learning model.


There is much room for improvement in our model. Future goals include:

  • Creating a web app to implement model and allow for user interaction
  • Building a model in which the sequences are composed of words rather than characters
  • Refining the training and text generation to be able to ask for different genres/styles of Shakespearean text
  • Training a classification model that takes in text and returns which Shakespearean work it is most likely from

Download Shakespeare's Sonnets from the Project Gutenberg website.


Necessary Libraries

About

Clean and prepare Shakespeare's Sonnets to train a LSTM neural network on. Given a prompt of a few words as input, its task is to generate follow-on text that reads like a line from a Shakespearean Sonnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published