Generate a novel using Markov chains
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Blink The Things 862c221a6e Make a few tweaks and add an example 4 years ago
example Make a few tweaks and add an example 4 years ago
.gitignore Initial commit 4 years ago
COPYING Initial commit 4 years ago
README.md Update 'README.md' 4 years ago
markov.py Make a few tweaks and add an example 4 years ago
requirements.txt Remove spacy language model from requirements.txt 4 years ago

README.md

NaNoGenMo 2020 - markov.py

Gernerate a novel using Markov chains

Installation

$ python3 -m venv venv
$ . venv/bin/activate
(venv) $ pip install -r requirements.txt
(venv) $ python -m spacy download en_core_web_sm

Usage

$ . venv/bin/activate
(venv) $ python markov.py -h
usage: markov.py [-h] [-s SEED] input [input ...]

Generate a novel using Markov chains.

positional arguments:
  input                 used to construct Markov transition matrix

optional arguments:
  -h, --help            show this help message and exit
  -s SEED, --seed SEED  seed for random number generator