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


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

Login to reply

👍?
helpful
9:52pm Sun 15th May, ANONYMOUS

Hi Michael, I got a few differences in Patterson_sample vs Lawrence_sample and Lawrence_sample vs Lawson_sample from yours. I think that is caused by some different definition of compound_word & contraction and something like R.L. I don't need you to tell me and discuss anything above, but show us the profile of Patterson and Lawrence_sample to follow your steps. Could you please make things easier for us on this annoying language stuff? Like just set 've 'll and some set of everyday things as contraction. These things are meaningless for this unit. Thank you so much for your attention and participation. Cheers, Rick


 UWA week 20 (1st semester, week 11) ↓
SVG not supported

Login to reply

👍?
helpful
10:01pm Tue 17th May, Michael W.

Hi Rick, Done. For each of the longer text samples I have now posted the corresponding profiles. Hope that helps. Cheers MichaelW


SVG not supported

Login to reply

👍?
helpful
8:45am Wed 18th May, Alicia L.

Thanks for the upload Micheal! However I want to point out that apparently your program does not count "more-or-less" as a compound. I'm not sure about this but I think you did mention before that multiple-hyphenated words as such should also be counted as a compound. Cheers


SVG not supported

Login to reply

👍?
helpful
8:56am Wed 18th May, Michael W.

Hi Alicia, I checked just now and more-or-less (as a single word text) is indeed counted both as a word and a compound word. " word 1 contraction 0 compound_word 1 " It is possible you have an old version of the file in your browser cache. If you reload it I think you'll find it'll be okay now. (It came up in a discussion last week, so the change would date from then.) Cheers MichaelW


SVG not supported

Login to reply

👍?
helpful
9:12am Wed 18th May, Alicia L.

Hi Micheal, I tried reloading the files and still got the same result. My contraction count for the Lawrence sample is 35, but yours is 34. And my word count for Lawrence is 139, but yours is 138.


SVG not supported

Login to reply

👍?
helpful
10:40am Wed 18th May, Alicia L.

Just to make it easier, this is list of compound words that I got from the Lawrence sample: shirt-sleeves taxi-drivers blue-overalled grass-lawn fresh-faced pale-faced well-dressed self-possession foreign-looking self-possession comical-looking foreign-looking Half-sheepishly comical-looking more-or-less boarding-house hat-box foreign-looking after-luncheon cream-coloured cream-coloured Fifty-one cream-coloured ordinary-sized hat-box taxi-driver three-pence hansom-cab clock-clocking hansom-driver red-faced red-faced henpecked-looking Fifty-one hat-box


SVG not supported

Login to reply

👍?
helpful
10:42am Wed 18th May, Alicia L.

so when I manually counted, it is 35


SVG not supported

Login to reply

👍?
helpful
1:24pm Wed 18th May, Michael W.

Hi Alicia, I figured out what the difference is. The spec talks about - as a hyphen, between two words. What you have in this text are a couple free-standing hyphens (which should really be em dashes aka hyphen pairs, but here were rendered as single hyphens. For example "They were a mixed lot - taxi-drivers, a group ...". The first "-" is a dash, not a hyphen as described in the spec. Thanks for commenting. Others may have fallen into the same trap. Cheers MichaelW


SVG not supported

Login to reply

👍?
helpful
1:41pm Wed 18th May, Alicia L.

Hmmm sorry Micheal, don't mean to be calculative but I did double-check what I have and pretty sure mine doesn't calculate the em dashes since it automatically separated any words by white spaces. So the example you've given, "mixed lot - taxi-drivers", mine would count only one compound since the first dash (between white spaces) was already omitted. So maybe you can send the list of compound words that you found in the Lawson sample in help 4407, like I did. It would be very helpful for those stumbling in the same trap like I did :D Thanks very much


SVG not supported

Login to reply

👍?
helpful
1:56pm Wed 18th May, Michael W.

Hi Alicia Here is my list. BTW. A compound word with 3 hyphenated components only counts as 1 word and 1 compound word. Cheers MichaelW shirt Hyphen sleeves taxi Hyphen drivers blue Hyphen overalled grass Hyphen lawn fresh Hyphen faced pale Hyphen faced well Hyphen dressed self Hyphen possession foreign Hyphen looking self Hyphen possession comical Hyphen looking foreign Hyphen looking half Hyphen sheepishly comical Hyphen looking more Hyphen or-less boarding Hyphen house hat Hyphen box foreign Hyphen looking after Hyphen luncheon cream Hyphen coloured cream Hyphen coloured fifty Hyphen one cream Hyphen coloured hat Hyphen box taxi Hyphen driver three Hyphen pence hansom Hyphen cab clock Hyphen clocking hansom Hyphen driver red Hyphen faced red Hyphen faced henpecked Hyphen looking fifty Hyphen one hat Hyphen box


SVG not supported

Login to reply

👍x1
helpful
2:34pm Wed 18th May, Alicia L.

Yup thanks so much Micheal! This helps a lot! So I can see that you miscounted "ordinary-sized", which is supposed to be a hyphenated word. It's found here in the text: "...the foot of the steps: two ordinary-sized gladstones,..."


SVG not supported

Login to reply

👍?
helpful
4:09pm Wed 18th May, ANONYMOUS

Yeah i get 35 as well


SVG not supported

Login to reply

👍?
helpful
8:38am Thu 19th May, ANONYMOUS

Hello Michael, was wondering if you had a chance to fix this one?


SVG not supported

Login to reply

👍?
helpful
10:48pm Thu 19th May, ANONYMOUS

Quick question for those getting 35 compound words are you also getting one more word total? possibly thinking Micheal deleted the compound word from his local copy


SVG not supported

Login to reply

👍?
helpful
11:25pm Thu 19th May, ANONYMOUS

Same here, which leads to the comparison results to deviate bit from what Micheal shared right?


SVG not supported

Login to reply

👍?
helpful
1:50pm Fri 20th May, ANONYMOUS

Yes, 1309 words instead of 1308 words, right?

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