calculating sentiment of tweets