add function to calculate sentiment score of tweet