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(“.!?”):

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Tensorflow 2.0 — from preprocessing to serving (Part 1)

Can we predict the text sentiment using Sentence Bert with minimal or without labeled data?

How I improved my score on Kaggle’s ventilator competition by increasing epochs from 2000 to 10000

Chapter 3-Machine Learning Types and their applications

MATHEMATICS BEHIND GAUSSIAN MODEL OF NAÏVE BAYES CLASSIFIER

Tour Planning by ACO algorithm and improved that by Heuristically Accelerated Distributed…

The Quest of Higher Accuracy for CNN Models

Estimating time, a waste of time?

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.

More from Medium

Handling Imbalanced Datasets by Oversampling and Undersampling with Python Implementation

Linear Regression: Theory and Application with Python

Tackling Big Data with Pandas

That’s a panda handling some big data ain’t it xD

Python Plots--Seaborn Plots