2020-01-14 19:27:49 +00:00
|
|
|
# `markovpack`
|
2020-01-14 18:33:23 +00:00
|
|
|
|
2020-01-14 19:27:49 +00:00
|
|
|
A [Royalnet](https://github.com/Steffo99/royalnet) pack to have fun with [Markovify](https://github.com/jsvine/markovify)!
|
2020-01-14 18:33:23 +00:00
|
|
|
|
2020-01-14 19:27:49 +00:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
1. Create a new directory in the working directory of the Royalnet instance.
|
|
|
|
2. Place there the `.json` files generated by the `text.to_json()` method of markovify's NewLineTexts.
|
|
|
|
3. In the `config.toml` of the Royalnet instance, set the following values:
|
|
|
|
```toml
|
|
|
|
[Packs."markovpack"]
|
|
|
|
Markov.models_directory = "markovpack" # The name of the directory containing the .json files
|
|
|
|
Markov.default_model = "example" # The name of the .json file that should be parsed if no arguments are passed to the command
|
2020-01-15 13:12:50 +00:00
|
|
|
Markov.min_words = 5 # The minimum number of words a sentence should have to be sent
|
2020-01-14 19:27:49 +00:00
|
|
|
```
|
2020-01-15 13:12:50 +00:00
|
|
|
4. Start Royalnet with `python -m royalnet` and have fun!
|