changd sentiment analysis to analyze text instead of file