mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-25 12:34:19 +00:00
Services network for the RYG community
markovpack | ||
.gitignore | ||
LICENSE.txt | ||
poetry.lock | ||
publish.bat | ||
pyproject.toml | ||
README.md |
markovpack
A Royalnet pack to have fun with Markovify!
Usage
- Create a new directory in the working directory of the Royalnet instance.
- Place there the
.json
files generated by thetext.to_json()
method of markovify's NewLineTexts. - In the
config.toml
of the Royalnet instance, set the following values:[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 Markov.min_words = 5 # The minimum number of words a sentence should have to be sent
- Start Royalnet with
python -m royalnet
and have fun!