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.

27 lines
591 B

4 years ago
  1. # NaNoGenMo 2020 - markov.py
  2. Gernerate a novel using Markov chains
  3. ## Install
  4. ````
  5. $ python3 -m venv venv
  6. $ . venv/bin/activate
  7. (venv) $ pip install -r requirements.txt
  8. (venv) $ python -m spacy download en_core_web_sm
  9. ````
  10. ### Usage
  11. ````
  12. (venv) $ python markov.py -h
  13. usage: markov.py [-h] [-s SEED] input [input ...]
  14. Generate a novel using Markov chains.
  15. positional arguments:
  16. input used to construct Markov transition matrix
  17. optional arguments:
  18. -h, --help show this help message and exit
  19. -s SEED, --seed SEED seed for random number generator
  20. ````