Generating Text in Shakespearean English with Markov Chains

This is a gentle introduction to Markov chains for text generation. We are going to train a model using the Markovify library on three of William Shakespeares most famous Tragedies and see if what we generate is legible and coherent. I am aware that these two terms are somewhat nebulous but I feel that most people will understand my intention when using them, especially when they see the variation in text that is generated.

Markovify is a python library that brands itself as “A simple, extensible Markov chain generator. Uses include generating random semi-plausible sentences based on an existing text.”…

Gregory Pernicano

Amalgamation of math, physics, and Olympic weightlifting

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store