Simple sentiment analysis using bag of words model
This project uses node and npm.
$ npm install sentibag
$ # OR
$ yarn add sentibag
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: [] } }
- 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
MIT