Question

Your code should accomplish the following tasks: (1) Read the 30 .txt files, each of which has the transcript of a presidential debate. The following code does it. Make sure to

replace "corpusroot" by your directory where the files are stored. In the example below, "corpusroot" is a sub-folder named "presidential_debates" in the folder containing the python file of the code. In this assignment we ignore the difference between lower and upper cases. So convert the text to lower case before you do anything else with the text. For a query, also convert it to lower case before you answer the query.