Class: Aws::Comprehend::Types::DocumentReaderConfig

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

{
  document_read_action: "TEXTRACT_DETECT_DOCUMENT_TEXT", # required, accepts TEXTRACT_DETECT_DOCUMENT_TEXT, TEXTRACT_ANALYZE_DOCUMENT
  document_read_mode: "SERVICE_DEFAULT", # accepts SERVICE_DEFAULT, FORCE_DOCUMENT_READ_ACTION
  feature_types: ["TABLES"], # accepts TABLES, FORMS
}

The input properties for a topic detection job.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#document_read_actionString

This enum field will start with two values which will apply to PDFs:

  • TEXTRACT_DETECT_DOCUMENT_TEXT - The service calls DetectDocumentText for PDF documents per page.

  • TEXTRACT_ANALYZE_DOCUMENT - The service calls AnalyzeDocument for PDF documents per page.

Returns:

  • (String)


2443
2444
2445
2446
2447
2448
2449
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 2443

class DocumentReaderConfig < Struct.new(
  :document_read_action,
  :document_read_mode,
  :feature_types)
  SENSITIVE = []
  include Aws::Structure
end

#document_read_modeString

This enum field provides two values:

  • SERVICE_DEFAULT - use service defaults for Document reading. For Digital PDF it would mean using an internal parser instead of Textract APIs

  • FORCE_DOCUMENT_READ_ACTION - Always use specified action for DocumentReadAction, including Digital PDF.

Returns:

  • (String)


2443
2444
2445
2446
2447
2448
2449
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 2443

class DocumentReaderConfig < Struct.new(
  :document_read_action,
  :document_read_mode,
  :feature_types)
  SENSITIVE = []
  include Aws::Structure
end

#feature_typesArray<String>

Specifies how the text in an input file should be processed:

Returns:

  • (Array<String>)


2443
2444
2445
2446
2447
2448
2449
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 2443

class DocumentReaderConfig < Struct.new(
  :document_read_action,
  :document_read_mode,
  :feature_types)
  SENSITIVE = []
  include Aws::Structure
end