Modeling Guide

Sentiment Analyzer

The Sentiment Analyzer operator performs a sentiment analysis and a subjectivity analysis. It takes a message in input and adds on two attributes: polarity and subjectivity. Polarity is between -1 and 1, subjectivity is between 0 and 1.

The operator uses the Python library TextBlobInformation published on non-SAP site to extract the sentiment from the text.

The operator depends on Python2 and the TextBlob.

Configuration Parameters

None

Input

Input

Type

Description

message

message

A message with text in its body to be extracted as the sentiment.

Output

Output

Type

Description

sentiment

message

The input message with attributes.