Generating fake Trump tweets using Markov Chains

Twitter permanently suspends Trump’s account

A Markov chain is a stochastic model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event.

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