5. Calculate a Sentiment Score based on the Number of Positive and Negative Words and Classify Documents based on the Score.
The sentiment score is calculated by (number of postive words - number of negative words) divided by (number of postive words + number of negative words).
If the score is negative, the post is classified as negative; if the score is positive, it is classified as positive; and if it is equal to 0, the post is classified as neutral.