I have read many papers explaining how to assign polarity to each word in the lexicon of positive and negative terms. Some of them such as SentiWordNet assigned 3 polarity scores(Positive, Negative, and Objective). In my lexicon, I want to assign degree of polarity (e.g. weakly positive, mildly positive, and strongly positive) and similarly with negative terms. I have collected multiple of labeled dataset in order to accomplish this task.
Some research proposed a naive approaches by using a simple equation (e.g. PositivePolarity=#occurrence of positive word in positive examples/ sum of #occurrence of positive word in positive and negative examples).
I hope you to help me on how to extract features from labeled dataset and train my machine learning algorithms to obtain the 6 polarity scores for every term in my lexicon.