Markov Chaining (to generate Fake Alex Jones)

Channel:
Subscribers:
2,700
Published on ● Video Link: https://www.youtube.com/watch?v=DK_R1iMb9Wk



Duration: 44:30
229 views
4


This Markov Chain algorithm is about learning patterns in words. You start by feeding it a corpus (a body of work from an artist you want to emulate) and it learns what words follow what words with what probability. Also, which words begin sentences and end sentences. This creates a graph connecting all the words, with also a vertex for the start and the end.


The second half of the algorithm is to randomly generate new sentences using those probabilities. Starting at the start node, you randomly roll which word should begin the sentence, and then move there on the graph. You then keep randomly rolling dice and moving to vertex after vertex until you end up on the end node, at which you stop.


In today's class, a student suggested we make fake Alex Jones words, and the results we got were hilarious.







Tags:
csci 26
markov chaining
alex jones