Skip to content

cbelden/markovchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#markovchain

##About The markovchain module implements a Markov Chain (using a bigram) for text corpuses. I really just made this for my lyricscramble package, which has some unique requirements (for generating tweets).

##Installing

pip install git+git://github.com/cbelden/markovchain.git@master

##Use

corpus = 'This is a sample text corpus.'
chain = MarkovChain(corpus)
chain.generate_phrase()

About

Generates a Markov Chain based on a text corpus.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages