Skip to content

ADcorpo/TinyMarkovChains.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

#TinyMarkovChains

This is a small python module providing a Markov chain text generator.

Usage

from markov import MarkovChain

generator = MarkovChain()
# instanciating the generator

generator.train("GNU/Linux is an operatig system")
generator.train("Here is an ice cream")
# Training the generator with sample sentences

print(generator.talk())
# Output: GNU/Linux is an ice cream

Interest

Uhh…

About

Yet another markov chain implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages