It's UWAweek 48


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

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

Login to reply


So, I am not sure if I am going crazy here. Note, I have tried the following on both the full text, and a list of words I had already parsed - they have the same results for me. The profile given for Hucklebery_Finn.txt has 4 "also". Using an exact grep count on the text gives 3. The profile has 11 "whenever". Using an exact grep count on the text gives 8. The profile has 36 "though". Using an exact grep count on the text gives 35. The profile has 121 "which". Using an exact grep count on the text gives 115. I have tried many combinations, such as ignoring case or more vague grep searches etc.. But nothing that I do matches the sample profile. My current code matches perfectly the small sample profiles, but this long one I am afraid will likely have a Euclidean distance differing by more than 10%. Grepping the .!? also has a different number of sentences. Do other people get the same problem, or is it just me? I have also tried to redownload it from the assignment page fresh and literally just ran a grep search and my numbers are the same as above -- i.e, different from the long text sample profile. I am at a loss..

SVG not supported

Login to reply


Hi Marc, What you may have done, and what I did until Justin pointed it out, is that you've missed the relatively small number of instances where conjunctions are found at the beginning of sentences, and hence capitalised. "And" is the same as "and", for example, but don't count conjunctions that appear in compound words, e.g. one-and-only. 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