Class: Aws::Comprehend::Types::DetectSyntaxRequest

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

{
  text: "CustomerInputString", # required
  language_code: "en", # required, accepts en, es, fr, de, it, pt
}

Constant Summary collapse

SENSITIVE =
[:text]

Instance Attribute Summary collapse

Instance Attribute Details

#language_codeString

The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

Returns:

  • (String)


1510
1511
1512
1513
1514
1515
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 1510

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

#textString

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

Returns:

  • (String)


1510
1511
1512
1513
1514
1515
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 1510

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