Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I dont need help with the GUI. I need help with the concordance, sorting the words in alphabetical order and listing the number of occurances

I dont need help with the GUI. I need help with the concordance, sorting the words in alphabetical order and listing the number of occurances of the word. image text in transcribed

The program will be based on developing a concordance for a file, where a concordance is "an alphabetical list of the words (especially the important ones present in the file, usually with citations of the passages concerned You will create a graphical user interface for the user to specify the file to be processed and then compute the concordance of the file, removing stop words. The gui will have buttons to display the entire concordance or the concordance for a specified word. For each word, the display includes the total number of occurrences and for each occurrence, the line number in the file and the local context defined as the original line with the specified word in all upper case. Your program must be designed using functions, and you are to document the functions similar to javadoc, using Include in a comment at the beginning of your program, your name and a description of the main data structure used in your solution. Notes and Hints 75 Concordance: jingleBells tot For an open file object file obj.readlines0 will return a list, where each element is a Browse to File Display All Display word string, one of the lines of the file Remember that case should not matter ago: 1 here. The string "Dream" and "dream 19: A day or two AGO, should both count as the same word. bank: 1 Punctuation should be stripped so that 25 We got into a drifted BANK, bay: "dream." and "dream" both count as the 50 Just get a bob tailed BAY same word. bells 17 The context line printed should contain 5: BELLS on bob tail ring, its original capitalization (except for the 10 Oh, jingle BELLS, jingle BELLS specified word that is all upper case) and 14 Jingle BELLS, jingle BELLS original punctuation

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

6. Describe to a manager the different types of distance learning.

Answered: 1 week ago

Question

1. Explain how new technologies are influencing training.

Answered: 1 week ago