Skip to content

๐Ÿ” [Detector] sentiment detection for FIN NLP

Notifications You must be signed in to change notification settings

FinNLP/fin-sentiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Fin-Sentiment

Sentiment detection for Fin natural language processor.

  • Positive sentiment: positive number.
  • Negative sentiment: negative number.
  • All other: 0.

Installation

npm i --save fin-sentiment

Usage

import * as Fin from "finnlp";
import "fin-sentiment";

const sampleA = "That's not a good book";
const sampleB = "That's a good book";

const resultA = new Fin.Run(sampleA).sentiment();
const resultB = new Fin.Run(sampleB).sentiment();

console.log(resultA);
console.log(resultB);

The above example would give:

[
    [
        0,
        0,
        0,
        0,
        0,
        -3 // negative because it's negated
    ]
]
[
    [
        0,
        0,
        0,
        0,
        0,
        3 // positive
    ]
]

About

๐Ÿ” [Detector] sentiment detection for FIN NLP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published