Doubt in frequency of words- Assignment

Hello All

I have a doubt regarding the assingment on counting the frequency of words in a given file. When we print the top 10 words with highest occurrence, there could be many words with same number of occurrence. Now, do we print only one word from that list, or do we print all the words and take all the same occurrence as a single set and then proceed further ?

Same applies to 2 gram word assignment

Please let me know
Harish

You should be considering all the words.

Thank you. Just to clarify, if its like this. So the words “and/of/is” is counted as a single set ?

the 10
and 5
of 5
is 5
to 4

Yeah, the idea was just to implement frequency of words.