Sentiment analysis made external function
Some change need to be made for table specific setup