← Back to context

Comment by asow92

2 years 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.

Intriguing. How did you get it to fit the syllable count?

  • I 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.