An Approach to Sentiment Analysis