1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00
Services network for the RYG community
Find a file
2020-06-23 18:59:38 +02:00
markovpack Update to 5.9 2020-06-23 18:59:38 +02:00
.gitignore Allow setting a specific number of words 2020-01-15 14:12:50 +01:00
LICENSE.txt Create markovpack 2020-01-14 20:27:49 +01:00
poetry.lock Update to 5.9 2020-06-23 18:59:38 +02:00
pyproject.toml Update to 5.9 2020-06-23 18:59:38 +02:00
README.md Allow setting a specific number of words 2020-01-15 14:12:50 +01:00

markovpack

A Royalnet pack to have fun with Markovify!

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:
    [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
    
  4. Start Royalnet with python -m royalnet and have fun!