french-sentiment-analysis
v1.1.3
Published
Sentiment analysis is the process of detecting positive or negative sentiment in text
Downloads
40
Readme
french-sentiment-analysis
Sentiment analysis is the process of detecting positive or negative sentiment in french text
Install package
npm i french-sentiment-analysis
Usage
const { FrenchSentimentAnalyzer, Sentiment } = require("french-sentiment-analysis")
console.log(FrenchSentimentAnalyzer.getSentiment("ce programme est super"))
//1
console.log(FrenchSentimentAnalyzer.getSentiment("ce programme est mauvais"))
//-1
const positiveResult = FrenchSentimentAnalyzer.getSentiment("ce programme est super")
console.log(positiveResult === Sentiment.POSITIVE)
//true
console.log(positiveResult === Sentiment.NEGATIVE)
//false
const negativeResult = FrenchSentimentAnalyzer.getSentiment("ce programme est mauvais")
console.log(negativeResult === Sentiment.NEGATIVE)
//true
console.log(negativeResult === Sentiment.POSITIVE)
//false