Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 858 Bytes

README.md

File metadata and controls

14 lines (7 loc) · 858 Bytes

haiku-generator

The Haiku Generator is fed a series of pre-existing poems, and uses Markov chains to generate a large number of sentences from those poems. The text generated is then fed through a series of tests to determine which sequence of words are added to the final haiku.

To start generating haikus, run HaikuMain.java

Note: Run FileAdjustments.java if changes to the poem.txt file are made (or if you create your own list of poems to generate the haikus from). Make sure to add specific file names in the main method.

HaikuVideo.mp4

MarkovChain.java : open source code from https://rosettacode.org/wiki/Markov_chain_text_generator, under GNU Free Documentation License 1.2

SyllableCounter.java : from https://github.com/wfreitag/syllable-counter-java