You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arnaucode 592f97ec63 minimal changes and readme update 7 years ago
build minimal changes and readme update 7 years ago
.gitignore implemented text generation with markov chains 7 years ago
LICENSE Initial commit 7 years ago
README.md minimal changes and readme update 7 years ago
goMarkov.gif minimal changes and readme update 7 years ago
main.go minimal changes and readme update 7 years ago
markov.go minimal changes and readme update 7 years ago

README.md

goMarkov

markov chains text generator written in Go from scratch

states := markov.train(text)
generatedText := markov.generateText(states, firstWord, count)
fmt.Println(generatedText)

(in the text variable, goes the text content, can be loaded from a .txt file)

Argos