- Notifications
You must be signed in to change notification settings - Fork4
⛓️ Python package which provides you a simple way to generate phrases using Markov chains.
License
NotificationsYou must be signed in to change notification settings
jieggii/mc.py
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
mc.py is a tiny and trivial Python package which provides youa simple way to generate phrases using Markov chains.
Docs can be foundhere.
Just install it usingpip or any other package manager you use:
pip install mc.py
More examples can be foundhere.
importmcfrommc.builtinimportvalidatorsgenerator=mc.PhraseGenerator(samples=["hello world","world of cuties","bruh"])phrase=generator.generate_phrase(validators=[validators.words_count(minimal=4)])print(phrase)# >>> "hello world of cuties"
About
⛓️ Python package which provides you a simple way to generate phrases using Markov chains.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.