alchemy-api-opinions-annotator
v1.2.1
Published
This npm module enriches a set of reviews with sentiment annotations calculated via Alchemy API.
Downloads
3
Readme
alchemy-api-opinions-annotator
This npm module enriches a set of reviews with sentiment annotations calculated via Alchemy API.
Usage
Configure
- open file bin/config.js
- set
QUERY
parameter - run it
NODE_ENV=<mongodb connection url> npm start
Implementation
This module is implemented as a pipe of streams, that, in order:
- read reviews from a db
- replaceHtmlSpecialCharacters
- stripHtml
- annotateOpinionsWithAlchemy
- translateOpinionAnnotationsFromAlchemy
- update the reviews to db