Modeling Guide

Sentiment Analysis Simple Example

This is a simple example of how to use the Sentiment Analyser operator.

A message generator (implemented with a Javascript Operator) is used to alternate between two strings in the body of the message. One string has a positive sentiment and the other a negative sentiment. The Sentiment Analyser operator then adds two sentiment measures to the attributes field of the message: polarity and subjectivity. The updated message is then converted to string and printed on the Terminal operator.