Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 486 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 486 Bytes

mimic

personal module to bootstrap markov projects. really just a wrapper over the really damn good markovify.

basic usage

from mimic import Mimic

markov_model = Mimic.create_from_file('corpus.txt')

markov_model.make_sentence()

also can be created using Mimic.create_from_string and can do sentences based on newlines by passing newline=True.

this relies on nltk so you will need to download the sources for that.