sentiment-multitool

cli to scan piped text streams or start a web service for sentimint analysis. uses 'sentiment' by diy

npm install sentiment-multitool
4 downloads in the last week
8 downloads in the last month

sentiment-multitool

cli to scan piped text streams or start a web service for sentimint analysis. uses 'sentiment' by diy/@thisandagain

example

$> sentiment "hi i am super nice text"
{"text":"hi i am super nice text","error":null,"data":{"score":6,"comparative":1,"tokens":["hi","i","am","super","nice","text"],"words":["super","nice"],"positive":["super","nice"],"negative":[]}}
$>
$> sentiment
HELP:

this is a program that exposes the node module 'sentiment' by diy as a command line tool and an http service.

 you may pass any text as any series of unlabeld arguments
        example> sentiment i am text that will be scored
 --dict path/to/dictionary.json
        use this to override word scores or add new words
 --port portnumber
        if port is specified this will bind an http server that exposes a text scoring web service. POST body or GET ?text=texthere
 --help
        prints this help

install

sudo npm install -g sentiment-multitool

npm loves you