added text-analysis api to do sentiment analysis