Skip to content

alextanhongpin/go-markov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-markov

Text-generation with markov chain. This can be used for several other purposes:

  • chat conversation generation
  • quotes/lyrics/speech generation

Run

$ cat alice_oz.txt | go run markov.go

Output:

Woodman very unhappy, answered the Woodman; so do not know of to keep tramping forever, without getting anywhere at all. She stood, with Toto curled up on tiptoe, and peeped over the fire, and at last and stepped off upon the front of them, and find out the proper way of settling all difficulties, great or small. 'Off with her mind to harness him like a star-fish,' thought Alice. 'I've so often read in the road and lay still. Little Toto, now that he is too heavy to lift. We must certainly get to twenty at that rate! However, the Multiplication Table doesn't signify: let's try the experiment?' 'He might bite,' Alice cautiously replied, not feeling at all for any of them about me.

About

Generating text with markov chain

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages