3
$\begingroup$

I am trying to do a lexicon based sentiment analysis on my data, where I calculate the sentiment score as follows:

$$ Score = \frac{\sum_{i}{word_i}}{\mid words \mid} $$

So according to the score the word will be classified in either negative or positive. But I have also calculated for every word in the article its salience and frequency:

words salience frequency
sad 0.8 3
happy 0.5 2

Is it possible to use them in my sentiment analysis formula?

$\endgroup$

1 Answer 1

0
$\begingroup$

Yes, you can. Not quite sure what else to add. Your formula can then look like:

$$ Score = \sum_{i}{f(salience_i, frequency_i, sentiment_i)}$$

Where $f$ is a function that weighs your sentiment score with the salience and frequency. Up to you to define how.

  • What if you don't know which $f$ to use?

Now, bear with me, this isn't something I've tried per se, but this could be an interesting approach. You could use a recurrent neural network and your input could be the salience, frequency, and sentiment score for each word. Not only will your RNN "create" (ideally) the best $f$ for your particular problem, but it will also use the sequential information of the words, which may even improve your results.

$\endgroup$
3
  • $\begingroup$ The thing is i want to multiply the salience with the sentiment, but iam not sure about multiplying the result with the frequency, imo that wouldnt mke that much sense as its already relevant in calculating the salience. Do you know any papers regarding this matter? $\endgroup$ Commented May 7, 2020 at 21:54
  • $\begingroup$ *I mean adding the values, not multiplying them $\endgroup$ Commented May 7, 2020 at 22:16
  • $\begingroup$ To make sure we are on the same page, can you post the formula you use to compute the salience. Anyway, I edited my answer to provide an alternative way to do this using RNNs $\endgroup$ Commented May 8, 2020 at 7:33

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.