Skip to content

About

Generate random text matching the probability distribution of the input text

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Note

There are a number of other files and scripts in this repository which are not related to the functioning of the program. They exist as references for the blog post.

Usage

To run the script with the default settings (500 words and Moby Dick as the source material)

python main.py

If you want change the amount of text to generate or the training text, look for these constants at the start of the file.

In main.py

if __name__ == "__main__":

    # The number of words to generate
    NUM_OF_WORDS = 500

    # The text to emulate the sound of
    TRAINING_TEXT = "cleaned_moby_dick.txt"

About

Generate random text matching the probability distribution of the input text

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages