Skip to content

Sentiment analysis is the process of detecting positive or negative sentiment in text

Notifications You must be signed in to change notification settings

nestebe/french-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sentiment analysis is the process of detecting positive or negative sentiment in text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published