Simple text generation with markov-chains.
Create an uberjar with lein uberjar
, copy the jar to the source of the project
(it needs the resources
folder with books).
Run the jar java -jar markov-text-gen-0.1.0-SNAPSHOT-standalone.jar
.
The program will then:
-
load the books from
resources
, convert them into individual markov chain files, which will be saved inmarkov-files/
. -
merge them together into a single file
merged.markov
, which will also be saved. -
load the merged file, and create a sentence from provided seed words.
"it was a giant dog, as large as a small boy was waiting upon the platform."
"he did not like to be treated with respect well, thats respect, i expect, declared the clown"
"she was on my mind, so i slept uneasily and thought."