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.

29 lines
593 B

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