Skip to content

marble‐processor‐stanford

Miguel Fernandes edited this page Mar 17, 2017 · 4 revisions

Type

Processor.

Function

This processor assigns a polarity value to each message related to a specific topic. It is based on the works of Anwar Hridoy et. al.

It uses the stanford corenlp engine, and the SentiWordNet corpus.

Usage

Requirements

The sentiwordnet corpus needs to be loaded into marble before the first time use of this processor.

  1. Download the corpus here, in its txt version.
  2. Load it sending a POST request to the url:
http://server:<port>/api/update_sentiwordnet

with a single parameter called file with the corpus contents.

Options available

relatedWords: Verifies that the related words are present. If not, the message is not processed.

###Example Recipe

{
  "name": "processor-stanford",
  "options": {
    "relatedWords": [
      "camera"
    ]
  }
}