0.0.1 • Published 1 year ago

@rahadiana/sentimenid v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

sentimentID

Calculate And Get Sentiment Score For Indonesian Language

Installing

Using npm:

npm i @rahadiana/sentimenid

USAGE

const {SentimentId} = require("@rahadiana/sentimenid");
console.log(SentimentId('aku benci kamu , tetapi aku sayang kamu'))

SUCCESS RESPONE

{"score":1,"sentiment":"positive","comparative":0.14285714285714285,"calculation":[{"sayang":3},{"benci":-2}],"tokens":["aku","benci","kamu","tetapi","aku","sayang","kamu"],"words":["sayang","benci"],"positive":["sayang"],"negative":["benci"]}