sentlex icon indicating copy to clipboard operation
sentlex copied to clipboard

Any idea what can I do if I want to determine the neutrality.

Open Xilili93 opened this issue 8 years ago • 1 comments

As title above.

Xilili93 avatar Jan 19 '17 15:01 Xilili93

When querying a word in a Lexicon object, you get back a tuple of floats indicating positive and negative sentiment.

You could query for neutrality by inspecting whether these values are the same, or close.

Ex from the readme:

>> SWN.getadjective('good')
(0.6190476190476191, 0.0)

bohana avatar Mar 03 '19 15:03 bohana