Class: Aws::Comprehend::Types::BatchDetectSentimentItemResult

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb

Overview

The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#indexInteger

The zero-based index of the document in the input list.

Returns:

  • (Integer)


284
285
286
287
288
289
290
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 284

class BatchDetectSentimentItemResult < Struct.new(
  :index,
  :sentiment,
  :sentiment_score)
  SENSITIVE = []
  include Aws::Structure
end

#sentimentString

The sentiment detected in the document.

Returns:

  • (String)


284
285
286
287
288
289
290
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 284

class BatchDetectSentimentItemResult < Struct.new(
  :index,
  :sentiment,
  :sentiment_score)
  SENSITIVE = []
  include Aws::Structure
end

#sentiment_scoreTypes::SentimentScore

The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.



284
285
286
287
288
289
290
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 284

class BatchDetectSentimentItemResult < Struct.new(
  :index,
  :sentiment,
  :sentiment_score)
  SENSITIVE = []
  include Aws::Structure
end