Added function to get the positive or negative value of a sentence.