Sentiment
  • 19 Jul 2024
  • 1 Minute to read
  • Contributors
  • PDF

Sentiment

  • PDF

Article summary

The emotional state of the conversations occurring in the text is evaluated as "sentiment scores".

Parameters:

name
description
default
AddressThe address of the Sentiment service that will be used to analyze the sentiment of the text.http://core-text-sentiment
IgnoreSslErrorsignore any certificate errors if Sentiment address contains httpsfalse
LanguageThe information about the language of the text to be analyzed is transmitted through this parameter.en-US
DialogBasedEvaluate the text to be sent either as a plain text or by converting it into a dialogue format.false
PreventEmptySentimentIf true, the sentiment node will refrain from sending any event in cases where detected sentiment is neutral.false

Inputs

Events:

namedescriptionknown nodes that generate this event
*all events containing the 'Text' attributeSR Http

Outputs

Audio:
none

Events:

namedescription
sentimentA sentiment event is raised once for each separate input event with a Text field.

Remarks:
This node can work in one of two modes:

Utterance Based :
Analyses each incoming event independently.

Dialog Based :
Collects input events from multiple channels/speakers and treats them as a dialog. Output contains dialog information.

Project Structure
A minimal project that utilizes Sentiment node can be built as such:

image.png

Note that the project above is `Utterance Based`. Which means each speech segment will be evaluated independently of each other.

A Dialog Based Sentiment project can be built as such:

image.png

Supported flow types: Stream, Batch


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.