class Aws::TranscribeService::Types::SentimentFilter

An object that enables you to specify a particular customer or agent sentiment. If at least 50 percent of the conversation turns (the back-and-forth between two speakers) in a specified time period match the specified sentiment, Amazon Transcribe will consider the sentiment a match.

@note When making an API call, you may pass SentimentFilter

data as a hash:

    {
      sentiments: ["POSITIVE"], # required, accepts POSITIVE, NEGATIVE, NEUTRAL, MIXED
      absolute_time_range: {
        start_time: 1,
        end_time: 1,
        first: 1,
        last: 1,
      },
      relative_time_range: {
        start_percentage: 1,
        end_percentage: 1,
        first: 1,
        last: 1,
      },
      participant_role: "AGENT", # accepts AGENT, CUSTOMER
      negate: false,
    }

@!attribute [rw] sentiments

An array that enables you to specify sentiments for the customer or
agent. You can specify one or more values.
@return [Array<String>]

@!attribute [rw] absolute_time_range

The time range, measured in seconds, of the sentiment.
@return [Types::AbsoluteTimeRange]

@!attribute [rw] relative_time_range

The time range, set in percentages, that correspond to proportion of
the call.
@return [Types::RelativeTimeRange]

@!attribute [rw] participant_role

A value that determines whether the sentiment belongs to the
customer or the agent.
@return [String]

@!attribute [rw] negate

Set to `TRUE` to look for sentiments that weren't specified in the
request.
@return [Boolean]

@see docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/SentimentFilter AWS API Documentation

Constants

SENSITIVE