0.0.1 • Published 11 years ago

sentiment-multitool v0.0.1

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

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