Machine Learning, Markov Chains, Statistics, NLP, Fun.
now. Let’s jump to some code! Coding our Markov Chain in Python Now for the fun part! We will train a Markov chain on the whole A Song of Ice and Fire corpus (Ha! You thought I was going to reference the show? Too bad, I’m a book guy!). We will then generate sentences with varying values for k. For