Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 550 Bytes

sentiment.md

File metadata and controls

10 lines (6 loc) · 550 Bytes

Sentiment

Sentiment

This node processes text and performs a sentiment analysis using the Natural Language APIs. On invocation, it expects a string to be in msg.payload which contains the text that will be examined. On return, the msg.sentiment object is filled in with two properties:

  • msg.sentiment.score
  • msg.sentiment.magnitude

The input text defaults to be English but this can be changed to one of the supported languages.