npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

sentiment-multitool

0.0.1 • Public • Published

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

Keywords

none

install

npm i sentiment-multitool

Downloadsweekly downloads

0

version

0.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability