Skip to content

Small C++ library to generate Markov chains of strings/characters

Notifications You must be signed in to change notification settings

copperwater/markov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Markov chain utility for strings and characters.

This is a program that uses Markov chains to generate new strings from a corpus.

There are two headers provided, Markov.h and MarkovChar.h.

Markov.h implements the Markov class, which can be used to generate lists of strings. You can use it in "corpus" mode, which reads the entire corpus and generates associations without respecting line breaks, or in "line-by-line" mode, which generates line-independent associations.

MarkovChar.h implements the MarkovChar class, which can be used to generate single strings of letters.

As of March 2015, you can see this in action with the Twitter bot MarkovQuotes (http://twitter.com/markovquotes), which uses the functionality of Markov.h to mash up inspirational quotes.

About

Small C++ library to generate Markov chains of strings/characters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published