Part 1. Definition
In this task, you are given books product reviews in English language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative.
Part 2. Example
Hopeful for those who seek harmony in the world . I wouldn't recommend this to anyone who thinks that religious wars, repression of individual spirits or rape of the earth are good things. Those who seek peace, harmony, celebration of each of us and respect for our earth will find this hopeful
Answer: POS
Explanation: The overall sentiment of the review is positive as the reviewer mentions positive expressions such as 'hopeful', 'will find this helpful' etc.. Hence, the label is 'POS'.
Part 3. Exercise
A book full of examples of how NOT to write perl . I couldn't resist the title, so I got this book. Unfortunately, I cannot reccommend it to people who want to learn to write better Perl, execpt as a source of examples of the mistakes you should avoid. For example, in one of the earliest examples, the authors uses "return undef" in a situation where the return value of the routine is assigned to an array, to indicate the routine didn't find any of whatever it was looking for. Unfortunately, this is a mistake, the correct code would be to use "return;" all on its own. The correct solution produces an empty array or interim values; the mistake creates an array containing one element, 'undef'. There are a number of similar mistakes which indicate the author is in over his head, writing things he doesn't understand; the editors know even less about the matter; and the code was never tested and verified for correctness. If you want to learn Perl, get "Learning Perl"; If you want to improve your Perl, get "Intermediate Perl. To
Answer:
NEG