Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python code CSCI 1100 Computer Science 1 Homework 7 Overview This homework is worth 130 points torard your overall homework grade, and is due Thursday

Python code
image text in transcribed
image text in transcribed
image text in transcribed
CSCI 1100 Computer Science 1 Homework 7 Overview This homework is worth 130 points torard your overall homework grade, and is due Thursday April 12, 2018 at 11:59.39 pm It has two parts, each worth 70 points. Note that 70 +70-140 which is greater than 130. There is no extra credit, but this will give you some room for minor formatting issues. Please download hu7 files.zip. and unzip it into the directory for your HW You will find naltiple data files to be used in both parts The goal of this assignment is to work with detionaries. In part 1, yon will do some simple file processing. Read the guidelines very carefully there. In part 2, we have done all the file work for you so you should be able to get the data loaded in just a few lines For both parts, you will spend most of your time manipulating dictionaries given to you in the varions files Please remember to name your files hw7Part1-py and hw7Part 2 py As always, make sure you follow the program stract ure guidelines You will be graded on program correctness as well as good program structure Remember as well that we will be continuing to test homeworks for similarity. So, follow our guidelines for the acceptable levels of collaboration You can download the guidelines from the resources section in Piazza if you need a refresber. Note that this inchudes using someone elses code from a previous semester. Make sure the code you submit is truly your own. Autocorrect, now improved a bit more.. As promised, this is a simple modification of the HW6 version of autocorrect. You will make a few changes to make it more realistic. We will describe the whole homework but point out the differences in bold. Feel free to start from your HW6 code. Do not start from someone else's HW6 code To solve this problem, your program will read the mame of three files the first contains a dictionary of words (Note: the format of the file is changed) e the second contains a list of words to autocornect (as before) the third (a new file) contains potential letter substitutions (deseribed below). The input word file has a single word per line as before, but the dietionary file has two entries per line, the first entry on the line is a single valid wond in the English language and the second entry is a float representing the frequency of the word in the lexicon. The two values are separated by a comma. The inclusion of frequency is a slight change from the dictionary used in the previous assignment. Read the English dictionary into a Python dictionary, using words as keys and frequency as values You will use the frequency for deciding the most likely correction. The keyboard file has a line for each letter. The first entry on the line is the letter to be replaced and the remaining letters are ponsible substitutions for that letter. All the letters on the line are separated by spaces, These substitutions are calculated based on adjacency on the keyboard, so if CSCI 1100 Computer Science 1 Homework 7 Overview This homework is worth 130 points torard your overall homework grade, and is due Thursday April 12, 2018 at 11:59.39 pm It has two parts, each worth 70 points. Note that 70 +70-140 which is greater than 130. There is no extra credit, but this will give you some room for minor formatting issues. Please download hu7 files.zip. and unzip it into the directory for your HW You will find naltiple data files to be used in both parts The goal of this assignment is to work with detionaries. In part 1, yon will do some simple file processing. Read the guidelines very carefully there. In part 2, we have done all the file work for you so you should be able to get the data loaded in just a few lines For both parts, you will spend most of your time manipulating dictionaries given to you in the varions files Please remember to name your files hw7Part1-py and hw7Part 2 py As always, make sure you follow the program stract ure guidelines You will be graded on program correctness as well as good program structure Remember as well that we will be continuing to test homeworks for similarity. So, follow our guidelines for the acceptable levels of collaboration You can download the guidelines from the resources section in Piazza if you need a refresber. Note that this inchudes using someone elses code from a previous semester. Make sure the code you submit is truly your own. Autocorrect, now improved a bit more.. As promised, this is a simple modification of the HW6 version of autocorrect. You will make a few changes to make it more realistic. We will describe the whole homework but point out the differences in bold. Feel free to start from your HW6 code. Do not start from someone else's HW6 code To solve this problem, your program will read the mame of three files the first contains a dictionary of words (Note: the format of the file is changed) e the second contains a list of words to autocornect (as before) the third (a new file) contains potential letter substitutions (deseribed below). The input word file has a single word per line as before, but the dietionary file has two entries per line, the first entry on the line is a single valid wond in the English language and the second entry is a float representing the frequency of the word in the lexicon. The two values are separated by a comma. The inclusion of frequency is a slight change from the dictionary used in the previous assignment. Read the English dictionary into a Python dictionary, using words as keys and frequency as values You will use the frequency for deciding the most likely correction. The keyboard file has a line for each letter. The first entry on the line is the letter to be replaced and the remaining letters are ponsible substitutions for that letter. All the letters on the line are separated by spaces, These substitutions are calculated based on adjacency on the keyboard, so if

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+about the acquisition are making investors nervous or happy?

Answered: 1 week ago