/MarkovifyTest

Primary LanguagePythonMIT LicenseMIT

MarkovifyTest

Simple markov testing program. Stuff will be documented below, but more changes will come to make this structured and include a running section and such things.

Notes:

  • Use pip install -r requirements.txt inside this dir to get all of those.
  • run.bat runs this.
  • To generate another bit of text after a generation, press enter.

Obtaining a file

To go into the data folder and grab a file, use something like:

"data/sc.txt"

You can also use the command line arg. You can use something like:

python main.py data/constitution.txt

That will bypass the older method of the asking you for input after exicution thing, using data/constitution.txt as its text file to search for words to markov.

run.bat will probably have this as another demonstration of how it works; will use one of the files in the data folder as expected.

It will save all things generated to that saved strings file, assuming that it is not trying to save a None object and you've gone through all 10 generations. Also it will print out just how many bytes have been written to said log. And no, I am not going to convert this as I am far too lazy.

Files here are random files from around.

Good enjoyment!