sentlex
sentlex copied to clipboard
Any idea what can I do if I want to determine the neutrality.
As title above.
When querying a word in a Lexicon
object, you get back a tuple of float
s 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)