Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Two Negatives Make a Positive

node v8.17.0
version: 2.0.0
endpointsharetweet
"wink-sentiment" handles negation intelligently; for example, phrase "good product" will get a positive score whereas "not a good product" gets a negative score. Here is a little more complex example:
// Load wink sentiment package. var sentiment = require( 'wink-sentiment' ); // Let us try a product review with double negatives! var result = sentiment( "I wasn't unconvinced about buying decision" ); console.log( result );
Loading…

no comments

    sign in to comment