Zonked on Vicodin in the Presidential Race: Generating Fake Headlines with Markov Chains

Walking the fine line between satire and reality

Brienna Herold
Towards Data Science
9 min readMay 25, 2020

--

In this post, we write Python code to generate fake news headlines, using a Markov chain model trained on a corpus of real headlines from The New York Times over the past year.

--

--