An implementation of second-order Markov chains for text generation
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lyrics.txt
markov-example.py
markov.py
readme.md
standup.txt

readme.md

Markov Chain for Text

An implementation of second-order Markov Chains for text generation.

For usage, see example file, markov-example.py which shows the two ways to train the Markov Chain:

  • with a single string as the training set
  • or a list of filenames

Example text files are also included.

Happy text generating!