PLEASE NOTE: this server, secure.csse.uwa.edu.au, will be unavailable on WEDNESDAY 7th December, from 1pm until 4pm.
Web-based programs, such as csmarks, cssubmit, and the help fora, will all be unavailable.
  It's UWAweek 49

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


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

Login to reply

👍?
helpful
3:49pm Sun 15th May, ANONYMOUS

Hi Micheal, Could you please explain how the distance is calculated? The file "Lawrence_Lawson.txt" shows that "because 0" also 2.338 although 0 and 337.7 as 52.82 because 0 before 2.113 but 4.272 comma 102.9 compound_word 9.461 contraction 0.8221 for 87.13 if 0.4747 nor 0 of 131.3 or 12.93 semi_colon 8.451 sentence 46.97 since 2.113 that 10.85 though 2.113 until 0 when 0 whenever 0 whereas 0 which 1.696 while 0 yet 2.113 The Euclidian Distance between the two texts is: 28.609 I find that in Lawrence_sample.txt, the "Because" appears once. But I cannot find any "because" in Lawson_sample.txt. I am really confused why the score of "beacuse" is 0. And also in this case, assignment says "What I have also chosen to report is the squares of the style-metric differences, which suggests that the big contributors to the final distance are use of comma and "and" (at least for those to samples)." How to decide "the big contributors"? The word "of" has 131.3 and comma has 102.9, why "the big contributors" are comma and "and", rather than "of" and "and"?


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

Login to reply

👍?
helpful
7:23pm Tue 17th May, ANONYMOUS

Anyone knows?


SVG not supported

Login to reply

👍?
helpful
9:23pm Thu 19th May, ANONYMOUS

I assume, because we normalize the values, for example for "because" : 1 * 1000 / 1308 which leads to 0.764525994, likewise calculation goes for all conjunctions, comma, semi_colon, compound_word and contraction. I got following values, which is closed but bit different to Micheal's answers. ./style_cmp Lawson_sample.txt Lawrence_sample.txt also 2.334 although 0 and 259.298 as 52.816 because 0.584 before 2.113 but 6.325 comma 104.039 compound_word 5.437 contraction 0.797 for 87.162 if 2.567 nor 0 of 130.854 or 12.935 semi_colon 8.451 sentence 46.870 since 2.113 that 10.883 though 2.113 until 0 when 0 whenever 0 whereas 0 which 1.702 while 0 yet 2.113 The Euclidian Distance between the two texts is: 27.231

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