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.