Note that if there is more than one text being compared against text T then the text that is most similar to T is also determinted and displayed.
Write and document a Python script PyText1.py implementing the system described above which takes as a command-line argument a text file of system commands and executes those command, printing results as appropriate. Your script must work on datafiles nm1.dat, nm2.dat, nm3.dat, nm4.dat, tc1.dat, tc2.dat, tc3.dat, tc4.dat, and com1.txt to produce the output given in typescript-file PyText1.script. You may assume that all textfiles are valid and exist when requested.
You may find it useful to store texts in the system using a dictionary of dictionaries.
######################################################### ## CS 2500 (Fall 2011), Assignment #6 ## ## Script File Name: PyText1.py ## ## Student Name: Todd Wareham ## ## Login Name: harold ## ## MUN #: 8008765 ## #########################################################If you choose to base your script on any answer-scripts for previous assignments, please note this in the docstring. You do not have to develop your code on our CS departmental systems. However, as your code will be compiled and tested on our CS departmental systems as part of the assignment marking process, you should ensure that your code compiles and runs correctly on at least one of these systems.
Created: October 20, 2011
Last Modified: October 20, 2011