calculate the sentiment of each tweet