CSC2604 Lab 0
Code contained in code.py. Reads text from file 'A Christmas Carol.txt' and produces 1-gram, 2-gram, and 3-gram data in separate csv files. Outputs to standard output sentences of length 6 words, 7 words, 8 words, 9 words, and 10 words generated by random sampling from each of 1-gram, 2-gram, 3-gram data using method described in Section 3 of Shannon (1948). The 'Sample Output' file gives an example output from a run of the program.