1.0.6 • Published 7 years ago

fin-sentiment v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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
    ]
]
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago