Machine Learning, Markov Chains, Statistics, NLP, Fun.
will approach uniformity. If zero or closer to it, then the distribution will more closely resemble that seen in the corpus. For all the examples I’ll show, I used an alpha value of 0. The second thing is the weighted_choice function. I had to implement it since Python’s random package doesn’t