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 11 articles in this topic
Showing 11 of 564 articles.
Currently 3 other people reading this forum.


 UWA week 19 (1st semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
1:04pm Mon 9th May, Justin H.
Edited: 7 mins later

Hi Michael, In the project instructions, under the heading "profile creation" The corresponding profile to the first sample (excerpt from Mark Twain) has 0 listed for all things in the profile. I suspect this is a mistake, since even the word count in the profile is listed as zero. Second, the profile for the second sample from Kangaroo has "compound_word" listed as 0, even though in the text, there are words such as "one-and-only" and "take-it-for-granted", which I would argue are compound words. In the project instructions, you defined "word-pair" as a word-pair, but never explicity defined what a compound word was. I assume that you meant word-pairs and compound words are the same thing. In the instructions you defined "word-pairs" as "two OR MORE simple words separated by hyphens with no spaces around them". Therefore I would argue that "one-and-only" and "take-it-for-granted" are in fact valid "word-pairs", and if word-pair means conjunction, then the count for conjunctions in the sample is incorrect, as it cannot be zero (i.e. it should be 2). As an addon to that, by the definition of "word-pair" and thus conjunction (assuming these are the same thing), I take it "one-and-only" only counts as ONE compound word, despite there being multiple "-" present. Sorry for bundling so many related questions into one post. Warm regards, Justin


SVG not supported

Login to reply

👍x1
helpful
1:04pm Mon 9th May, Justin H.

Hi Michael, In the project instructions, under the heading "profile creation" The corresponding profile to the first sample (excerpt from Mark Twain) has 0 listed for all things in the profile. I suspect this is a mistake, since even the word count in the profile is listed as zero. Second, the profile for the second sample from Kangaroo has "compound_word" listed as 0, even though in the text, there are words such as "one-and-only" and "take-it-for-granted", which I would argue are compound words. In the project instructions, you defined "word-pair" as a word-pair, but never explicity defined what a compound word was. I assume that you meant word-pairs and compound words are the same thing. In the instructions you defined "word-pairs" as "two OR MORE simple words separated by hyphens with no spaces around them". Therefore I would argue that "one-and-only" and "take-it-for-granted" are in fact valid "word-pairs", and if word pair means conjunction, then the count for conjunctions in the sample is incorrect, as it cannot be zero. As an addon to that, by the definition of "word-pair" and thus conjunction (assuming these are the same thing), I take it "one-and-only" only counts as ONE compound word, despite there being multiple "-" present. Sorry for bundling so many related questions into one post. Warm regards, Justin


SVG not supported

Login to reply

👍?
helpful
3:56pm Mon 9th May, Michael W.

Hi Justin, Again, well spotted! Fixed (I believe.) Cheers MichaelW


SVG not supported

Login to reply

👍x1
helpful
4:28pm Mon 9th May, ANONYMOUS

Michael, For me, the word count for sample2.txt comes out to 95 instead of 92 listed in profile uploaded by you. I have counted the words to ensure it should come to 95. Can you please confirm if 95 is indeed the right count of words? Since it affects the normalised profile to a great extend, having word count is extremely important. Can you please clarify?


SVG not supported

Login to reply

👍?
helpful
4:29pm Mon 9th May, Amandeep AS.

not fixed still


SVG not supported

Login to reply

👍?
helpful
4:40pm Mon 9th May, Amandeep AS.

apart from that how is the no. of sentences being counted . is it using how many new lines been been made using \n or simply


SVG not supported

Login to reply

👍x1
helpful
8:25pm Mon 9th May, ANONYMOUS

Getting 95 as well. Also, anyone else get 13 (instead of 12) 'and' for sample 1? Manually counted it too.


SVG not supported

Login to reply

👍?
helpful
8:59pm Mon 9th May, ANONYMOUS

Going through and manually counting the other samples. There's some small discrepancies between Michael's results and the actual results. As long as these are being marked by a human (and not inaccurate automated tests), it should be ok.


SVG not supported

Login to reply

👍?
helpful
10:26pm Mon 9th May, Michael W.

Thanks. I also manually counted, but my definitions may have changed in the interim. Seeing a couple people are getting the same result, I have another look tomorrow.


SVG not supported

Login to reply

👍?
helpful
10:33pm Mon 9th May, Michael W.

Hi Amandeep, A sentence has nothing to do with \n, which simply relates to the placement of the lines on the screen. A sentence is a sequence of one or more words ending with a full-stop (dot), exclamation mark or question mark. Cheers MichaelW


SVG not supported

Login to reply

👍?
helpful
4:14pm Sat 14th May, Marc E.

Hi Michael, For the first sample you have given us, the profile says that there are 12 sentences. However, I am repeatedly (manually) counting 11 sentences. There are, however, 12 full stops. Did your profile count the full stops as sentences by mistake? My understanding is that counting the number of "." will not represent sentences (like the "St. Lawrence" in sample1) - we need to either count ". ", "! " and "? " with a space or the end of the file after it? Cheers, Marc

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