Search code examples
nlpsentiment-analysislinguistics

Negativity score for sentences


I am working on a dataset of airline customer complaints. Since it is "complaints" the general consensus is all the sentence are "negative" sentiment. So I am think of an approach to quantize the negativity score.

For example:

Less Negative review:

 "the cabin did not have enough leg space but the food was decent" - Score: 0.3

High Negative Review:

"complete service was horrible, I will not recommend them ever" - Score: 0.8

Any suggestions on existing approaches?

P.S I am not looking for an exact answer, any suggestions on the direction or approaches would be great.


Solution

  • As @Vishal suggests in the comments, the simplest approach to add more sophistication would be to implement a lexicon based sentiment analysis scoring model where you custom score the polarity of each word in the lexicon to be higher and lower. You should also include some bigram and trigram lexicon phrases for more accuracy.

    Public sentiment analysis APIs from Google, Azure, IBM, etc. do provide a scale of sentiment too.