3 ms·
Markov Chains are cool stuff. Back in 2015 in one of my senior class projects, I built a haiku bot that would take a seed word and make a haiku from a corpus of
by asow92 3y ago
Markov Chains are cool stuff. Back in 2015 in one of my senior class projects, I built a haiku bot that would take a seed word and make a haiku from a corpus of Tweets I collected from the firehose API.
- chilipepperhott 3y agoIntriguing. How did you get it to fit the syllable count?
- asow92 3y agoI forget now and can't find the code, but if I recall correctly, I had each tokenized word map to its syllables and used that in calculating the next word. I wasn't able to get far enough to make each haiku make perfect grammatical sense, but it very often produced interesting results.