It's UWAweek 48

help2003/help4407

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 4 articles in this topic
Showing 4 of 564 articles.
Currently 1 other person reading this forum.


 UWA week 17 (1st semester, week 8) ↓
SVG not supported

Login to reply

👍?
helpful
12:17am Wed 27th Apr, ANONYMOUS

hi i just wanted to confirm what our program needs to show when asked about the nth most common word. for instance across all the files "I" is the fifth most common word which has been used around say x times. but if we calculate file by file then among all the files the fifth most common word is a in which appears to takes position 5 in 3 files . but if we consider all the files together then a is the 6th most common word. where should a appear . to simplify can you please post some more sample cases on the assignment page.


SVG not supported

Login to reply

👍?
helpful
10:12am Wed 27th Apr, Michael W.

Hi, While the spec could have said most common word across all the file taken together, i.e. in effect one large corpus, the spec actually wants to have the Nth most common word across the largest number of files, so if N=5 and "a" appears in position 5 in 3 files, and that is more files than any other word at that position, then "a" wins. Cheers MichaelW


SVG not supported

Login to reply

👍?
helpful
8:58am Fri 29th Apr, ANONYMOUS

Hi, sorry if it has already been asked but I didnt find anything about it. I was wondering what to do if there is no "most common word" for example -nth 20 will likely result in all words being different. Or in some cases second most common word could be "a" with 5 appearances and "the" with 5 appearances. How do we decide? Thank you in advance


SVG not supported

Login to reply

👍?
helpful
9:44am Fri 29th Apr, Michael W.

Hi, Let's keep it simple. Just return one of them. (No problem if you return of the equal best.) Cheers MichaelW

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy