Options

"adding weight to tokens"

mrakarmrakar Member Posts: 2 Contributor I
edited June 2019 in Help
just like many other people I am trying to do very simple sentiment analysis of my texts

I have done everything other people did and I have a list of tokens for each text

what I would like is to add value to each token, which means that I have dictionary (similar to sentiwordnet) which have my words/tokens and their positive or negative value
so I need a way on how to compare my tokens with a dictionary and then multiply number of token is mentioned with positive/negative value
in the end I would take all of the positive values and all negative values and add them up

is there a way to do that (I have really tried but I can not seem to find a way to make this relation)? any pointer on how to do it will be nice

(and no, sentiwordnet is not applicable since we are talking about different language)
Tagged:
Sign In or Register to comment.