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


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

Login to reply

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

Hello Michael, I have noticed that Patterson_sample.txt has 3 contractions, and I only can count 2 - won't and don't. I assume your code calculates 'em as a contraction, however by definition - contraction is a simple word followed by ' followed by letters except s. But if we need to calculate 'em, how do we differentiate between quote and contraction, for example in the same text - 'Nil and 'no would be contractions logically as well - but they are clearly not


SVG not supported

Login to reply

👍x1
helpful
4:53pm Wed 18th May, ANONYMOUS

I was having the same issue, any clarification would be greatly appreciated.


SVG not supported

Login to reply

👍?
helpful
8:09pm Wed 18th May, Michael W.

Hi, I added debugging printing to the tokenizer, and I now see that " 'that's" being rendered as a contraction. The first ' is actually the start of quoted speech so can be ignored. The second ' should be interpreted as a possessive under the rules I have set up. Well spotted. Will fix. 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