Critical Role Markov Chain!
Good Morning Replitors!
My favorite show of all time, Critical Role, is at a bit of a standstill due to COVID-19. Therefore, I decided to spend the time and write my own Critical Role episodes! Not by hand of course, but with Machine Learning.
To generate the scripts, I use a Markov Chain. I'm not an expert in AI in any way, but from what I can tell, it generates sentences based on the probability of what words would follow other words. I've trained my Markov Chain based on transcripts from almost every episode of Critical Role Season 2. In theory, it shouldn't generate sentences that are the same from the show.
The sentences don't tend to make a lot of sense. However, the kinds of things characters talk about is very accurate. Liam, the wizard, is usually talking about spells. Matt is usually talking as a narrator. I also never explicitly told the bot to start with their name and then
:, but it was able to pick that up consistently.
Overall I'm quite happy how this turned out. Until I can figure out a way for them to somewhat maintain the same context, I don't think I'll be making any scripts. If you're not familiar with Critical Role, then what are you doing? Go check it out! But the sentences might make even less sense. If you are familiar with it, I hope you enjoy it, and the sentences it makes for you make sense too!
Run the repl, press enter (or type in load, then enter), and then wait for the AI to load (this may take a minute). Once it's loaded, press enter to generate a new line! Enjoy!
Perfectly! It helped me quite a bit, I think it's worth spreading. I am currently working on writing a critical thinking essay and reading a bit about it on this site and I think I will use your ideas because my essay is about refuting some computer myths. Thank you for the information.
This is pretty cool but does it need information from all of those text files :)
Wait for it . . . Wait for it . . . 5 minutes later . . . am I a victim of the Sunk Cost fallacy . . .
Noooo! I waited for so long and the program ended!