PLEASE NOTE: the upgrades to this server, secure.csse.uwa.edu.au, have not yet been completed.
Hopefully the changes will be completed on THURSDAY 8th December.
Web-based programs, such as csmarks, cssubmit, and the help fora, will be unavailable at some time on Thursday 8th.
  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 5 articles in this topic
Showing 5 of 564 articles.
Currently 2 other people reading this forum.


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

Login to reply

👍?
helpful
10:06pm Sun 15th May, Marc E.

Hi Michael, Sorry for bringing it up again - sample profile 1 says there are 12 sentences, but a manual count shows 11 sentences. How should we handle that? There are 12 full stops, does that mean that your code is only counting the number of full stops/exclamation mark/question marks? Thank you in advance for your clarification. Cheers, Marc


SVG not supported

Login to reply

👍?
helpful
10:31pm Sun 15th May, ANONYMOUS

"For example, sample1.txt contains "St. Lawrence". English speakers know that St. is a contraction of Saint (or Street), but that is well beyond this unit. From our point of view, it looks like a full-stop after St." Yeah its fine, its beyond this unit


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

Login to reply

👍?
helpful
2:10pm Mon 16th May, Marc E.

"Yeah its fine, its beyond this unit" - but we still need to get the sample profiles right. What I am asking is if Michael is actually counting a sentence as the number of full stops | exclamation mars | question marks? If I "correctly" find a way to count the sentences, then sentences = 11. However, if I just count the ('.' '!' '?') occurences then sentences = 12. Therefore, for this assignment - will simply counting the ('.' '!' '?') occurrences be getting full marks?


SVG not supported

Login to reply

👍?
helpful
2:26pm Mon 16th May, ANONYMOUS

Hmm, not sure actually.. I am just trying to match the profiles that we are given. I am just counting .?! and it works fine for the samples (unless, i missed something). But for the longer texts we get 10% margin, so that shouldnt be the issue either. But I was curious as well especially for the cases like "..." or "!?"


SVG not supported

Login to reply

👍x1
helpful
5:25pm Mon 16th May, Michael W.

Hi, I'd missed ... (elipsis), but in any case dot is understood as full stop, so looks like we have an empty sentence. Don't worry about it. As I've said elsewhere, I want to keep things sensible. Logically, a dot is only a full-stop if preceded by at least one word, but that is also beyond the scope of this assignment. 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