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.
To run the script with the default settings (500 words and Moby Dick as the source material)
python main.pyIf 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"