This text generator uses these Markov model to read in a sample text, then generates a new random text based off the sample.
Usage:
Find TextGenerator in src file and run it with java.
Here are the arguments for running the program with them. In order the arguments are K (the length of a State, which is the basis for the text generation) M (the number of characters to generate) and the name of the file with the training text.
For example: 8 500 test1.txt
Zhuoxuan Zhang