You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Comprehend::Types::BatchDetectSentimentRequest

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

Overview

Note:

When making an API call, you may pass BatchDetectSentimentRequest data as a hash:

{
  text_list: ["String"], # required
  language_code: "en", # required, accepts en, es
}

Instance Attribute Summary collapse

Instance Attribute Details

#language_codeString

The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must be in the same language.

Returns:

  • (String)


261
262
263
264
265
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 261

class BatchDetectSentimentRequest < Struct.new(
  :text_list,
  :language_code)
  include Aws::Structure
end

#text_listArray<String>

A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.

Returns:

  • (Array<String>)


261
262
263
264
265
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 261

class BatchDetectSentimentRequest < Struct.new(
  :text_list,
  :language_code)
  include Aws::Structure
end