What is an appropriate encoding technique to be used for sentiment analysis?

I am starting with sentiment analysis task. Can someone help me in guiding me with an appropriate encoding technique that is needed to carry out the classification task?