Skip to content

rgh000/csc2604lab0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Lab 0 for CSC 2604

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages