french-sentiment-analysis
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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

/french-sentiment-analysis/

    Package Sidebar

    Install

    npm i french-sentiment-analysis

    Weekly Downloads

    10

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    13.2 kB

    Total Files

    15

    Last publish

    Collaborators

    • nestebe