|
|
@ -2,18 +2,19 @@ |
|
|
|
|
|
|
|
Gernerate a novel using Markov chains |
|
|
|
|
|
|
|
## Install |
|
|
|
## Installation |
|
|
|
|
|
|
|
```` |
|
|
|
```text |
|
|
|
$ python3 -m venv venv |
|
|
|
$ . venv/bin/activate |
|
|
|
(venv) $ pip install -r requirements.txt |
|
|
|
(venv) $ python -m spacy download en_core_web_sm |
|
|
|
```` |
|
|
|
``` |
|
|
|
|
|
|
|
### Usage |
|
|
|
## Usage |
|
|
|
|
|
|
|
```` |
|
|
|
```text |
|
|
|
$ . venv/bin/activate |
|
|
|
(venv) $ python markov.py -h |
|
|
|
usage: markov.py [-h] [-s SEED] input [input ...] |
|
|
|
|
|
|
@ -25,4 +26,4 @@ positional arguments: |
|
|
|
optional arguments: |
|
|
|
-h, --help show this help message and exit |
|
|
|
-s SEED, --seed SEED seed for random number generator |
|
|
|
```` |
|
|
|
``` |