Question: Part 1 - Count unique words 1 (python) In Exercise 6 in Assignment 3 you saved all words from the two text files eng_news_100K-sentences.txt and

Part 1 - Count unique words 1 (python)

In Exercise 6 in Assignment 3 you saved all words from the two text files eng_news_100K-sentences.txt and holy_grail.txt in two separate files. (Do it now if you haven't done this exercise already,) Your task here is to 1) use Python's set class to count the number of unique words in each file, and 2) use Python's dictionary class to produce a Top 10 list of the ten most frequently used words having a length larger than 4 in each file. In Part 3 you will repeat the same computations using your own hash and BST based implementations.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!