Class: Aws::Comprehend::Types::DetectSentimentRequest

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 DetectSentimentRequest data as a hash:

{
  text: "CustomerInputString", # required
  language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
}

Constant Summary collapse

SENSITIVE =
[:text]

Instance Attribute Summary collapse

Instance Attribute Details

#language_codeString

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

Returns:

  • (String)


1592
1593
1594
1595
1596
1597
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 1592

class DetectSentimentRequest < Struct.new(
  :text,
  :language_code)
  SENSITIVE = [:text]
  include Aws::Structure
end

#textString

A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

Returns:

  • (String)


1592
1593
1594
1595
1596
1597
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 1592

class DetectSentimentRequest < Struct.new(
  :text,
  :language_code)
  SENSITIVE = [:text]
  include Aws::Structure
end