Text Generation in R using Markov Chains - Conceptual overview and tutorial (only 3 lines of code!)

Опубликовано: 25 Июль 2026
на канале: Melissa Van Bussel (ggnot2)
1,199
45

In this video, we'll learn how to perform text generation in R. First, we'll go over a conceptual overview and example of how text generation using Markov Chains works. Then, we'll learn how to do this in R using just 3 lines of code. To do this, we'll use the markovify (Python package) and markovifyR (R package) packages.

All of the code from this tutorial is available here: https://github.com/melissavanbussel/Y...

The Reddit dataset used in this video can be downloaded from Kaggle here: https://www.kaggle.com/datasets/vishx...

The Shiny app that was used in the demo in this video is located here (Please note that there is a 5MB upload size limit for the version that is hosted on shinyapps.io): https://melissavanbussel.shinyapps.io...

If you found this video helpful, please subscribe to my channel.

Want to connect?

Twitter:   / melvanbussel  
LinkedIn:   / melissavanbussel  
Website: https://www.melissavanbussel.com/
GitHub: https://github.com/melissavanbussel