vybhavk / markov-chain-for-text

An implementation of second-order Markov chains for text generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

An implementation of second-order Markov chains for text generation


Languages

Language:Python 100.0%