Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 418 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 418 Bytes

#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…