Generating fake Trump tweets using Markov Chains

Twitter permanently suspends Trump’s account
An example of Markov Chain for text generation
(56571, 8)
'Getting a little exercise this morning!'
['Getting a',
'a little',
'little exercise',
'exercise this',
'this morning',
'morning !']
'A little kitty was crossing a street. A little kitty was scared.'
'exclusive @realdonaldtrump updates ! we can all agree the u .s.a. can give america great ! see'
elif next_word in list(“.!?”):



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
Miroslav Tushev

Miroslav Tushev

CS PhD @ LSU. Passionate about statistics, ML, and NLP.