You're looking for sentiment analysis and you won't get good results unless the text is in a specific domain. I did this work for a previous company where we analyzed restaurant reviews to extract actionable feedback. The trouble is that the written word is missing most of the nonverbal cues that give you the tone for spoken word (think air quotes or rolled eyes). So when you see a review that says "My steak came out well done...great job guys!" It looks positive but could be sarcastic. Or when someone says "We came to Taco Bell because we were looking for the most authentic Mexican cuisine" of course this is sarcastic but there is no way you could teach a computer to spot that.