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.

10 lines
276 B

7 years ago
  1. # goMarkov
  2. markov chains text generator written in Go from scratch
  3. ```go
  4. states := markov.train(text)
  5. generatedText := markov.generateText(states, firstWord, count)
  6. fmt.Println(generatedText)
  7. ```
  8. (in the text variable, goes the text content, can be loaded from a .txt file)