1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/analysis/sentiment
Sam Machin 2d28a2304f
Update package.jsons for mono-repo (#851)
Update the package.json for each node to point to the directory within the repo that hosts the code for the package in question.  as per https://docs.npmjs.com/cli/v7/configuring-npm/package-json#repository
2021-11-02 15:22:30 +00:00
..
locales added/improved DE translation of forms (#765) 2021-03-12 13:23:26 +00:00
72-sentiment.html few remaining x-red to html tidy ups, both sentiment and redis nodes. 2021-03-16 09:57:46 +00:00
72-sentiment.js revert sentiment node to English only to save loads of space 2019-03-13 14:25:23 +00:00
LICENSE bump senitment node to include links to multi lang version 2019-03-15 10:03:05 +00:00
package.json Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
README.md bump senitment node to include links to multi lang version 2019-03-15 10:03:05 +00:00

node-red-node-sentiment

A Node-RED node that scores incoming words using the AFINN-165 wordlist and attaches a sentiment.score property to the msg.

NOTE: There is also a multi-language version available - node-red-node-multilang-sentiment.

Install

This is a node that should be installed by default by Node-RED so you should not have to install it manually. If you do then run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-sentiment

Usage

Uses the AFINN-165 wordlist to attempt to assign scores to words in text.

Attaches msg.sentiment to the msg and within that msg.sentiment.score holds the score.

A score greater than zero is positive and less than zero is negative. The score typically ranges from -5 to +5, but can go higher and lower.

See the Sentiment docs here.