Share your repls and programming experiences

← Back to all posts
Quote Generator: Markov Chain
h
rediar (402)

https://repl.it/@rediar/Quote-Generator-Markov-Chain (py)
Hi guys! I made a markov chain that generates a random sentence based on the training texts of tweets from users or discord chats.
There are 3 curated options to start, including our god @timmy_i_chen and resident mat, @mat1.

What is a markov chain?

Markov chains are a very very simple form of machine learning. Essentially, in this case, it starts with a word, and based on the training text (the tweets), and randomly selects one of the words that comes after it, and keeps going until it encounters punctuation.

Check it out and pls upvote

Commentshotnewtop
[deleted]

oh no.It picked up the JOJO jotaro dio fight and messed up that data

Highwayman (1394)

@roylatgnail O.o

Oh.

My.

Gosh.

My eyes XD the first sentence was "I dropped my c** sock and a man it’s ok to hurt?"

[deleted]

@Highwayman lmao. Forgot that tweet

[deleted]

@Highwayman hmmmm, i wonder if it picks up comments?

[deleted]

@Highwayman if it does...

rediar (402)

@roylatgnail @Highwayman Pls upvote is you enjoyed.....
Also Taylor you have weird tweets

[deleted]

@rediar thats the point

sugarfi (587)

The trump one is the best:

I fully supports our current challenge of foreign countries get you to serve as long failed miserably!

Bookie0 (4552)

Cool! I tried my name and apparently I’m an idiot. 😔

Oh well

Have a good day

SotoAyam (12)

This is awesome!!!

rediar (402)

@mat1 Pls upvote is you enjoyed, I think it does a pretty good mat imitation lol