sentibag
v1.0.0
Published
Simple sentiment analysis using bag of words model
Downloads
2
Readme
sentibag
Simple sentiment analysis using bag of words model
Table of Contents
Install
This project uses node and npm.
$ npm install sentibag
$ # OR
$ yarn add sentibag
Usage
import analyze from 'sentibag'
import afinn111 from 'afinn111-lexicon'
analyze('I love you', afinn111)
// { score: 3,
// comparative: 3,
// positive: { score: 3, words: [ 'love' ] },
// negative: { score: 0, words: [] } }
Contribute
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
License
MIT