Question
USE PYTHON 3 ONLY Your task for this project will be to create a concordance for a text file. This project will be worth 40
USE PYTHON 3 ONLY
Your task for this project will be to create a concordance for a text file. This project will be worth 40 points. Please use proper formatting, comments and naming conventions. The due date for this is March 7, 2018 at 9:00PM.
A concordance is a compendium of the words in a particular text, along with their local context. By local context, I mean the surrounding words that occurred in the sentence with the word. A concordance has a number of uses, including searching for idioms and phrases, identification of authors, and translations of partial texts.
Because concordances are rather expensive (time wise) to develop, common words such as: and, a, the, those, him, her, etc. were ignored. These were called "stop words", and stop words are ignored in creating the concordance.
In your program you will need to ask the user which file they wish to analyze. Also you need to load a file of stop words named EnglishStopWords.txt. Then your program needs to compute a concordance which stores the following information for each word not in the stop words file
The word
The total number of occurrences in the text file.
Note: You do not need to save the local context of each occurrence.
Then your program needs to print the word which appears the most often along with how many times it occurs. If there is a tie for the most, print all the words which are tied. The word or words need to be printed in a table format including titles for each column
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started