1.1.3 • Published 3 years ago

french-sentiment-analysis v1.1.3

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

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
1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago