https://github.com/toastdriven/markov
A simple Markov chain generator done purely for fun.
https://github.com/toastdriven/markov
Last synced: 10 months ago
JSON representation
A simple Markov chain generator done purely for fun.
- Host: GitHub
- URL: https://github.com/toastdriven/markov
- Owner: toastdriven
- License: bsd-3-clause
- Created: 2013-08-10T08:52:27.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-10T08:52:43.000Z (almost 13 years ago)
- Last Synced: 2025-07-20T10:33:43.260Z (10 months ago)
- Language: Python
- Size: 1.48 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
======
markov
======
Just a fun little experiment in producing Markov chains.
You really shouldn't use this, it's mostly just for me. Uses JSON for
serialization. Python 2.6+ or Python 3.3+.
Usage
=====
You can test the main code via::
python markov.py
Which will dump out some text based on Python's `random`_ docs.
You can also test against some `Project Gutenberg`_ works, by first loading the
the data with::
python guten_mark.py parse
Then producing a quote using::
python guten_mark.py quote
.. _`random`: http://docs.python.org/3.3/library/random.html
.. _`Project Gutenberg`: http://www.gutenberg.org/ebooks/search/%3Fsort_order%3Ddownloads
License
=======
New BSD