1.2.1 • Published 8 years ago

alchemy-api-opinions-annotator v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

alchemy-api-opinions-annotator

This npm module enriches a set of reviews with sentiment annotations calculated via Alchemy API.

Usage

Configure

  1. open file bin/config.js
  2. set QUERY parameter
  3. run it NODE_ENV=<mongodb connection url> npm start

Implementation

This module is implemented as a pipe of streams, that, in order:

  1. read reviews from a db
  2. replaceHtmlSpecialCharacters
  3. stripHtml
  4. annotateOpinionsWithAlchemy
  5. translateOpinionAnnotationsFromAlchemy
  6. update the reviews to db