Class: Aws::Comprehend::Types::Block
- Inherits:
 - 
      Struct
      
        
- Object
 - Struct
 - Aws::Comprehend::Types::Block
 
 
- Includes:
 - Structure
 
- Defined in:
 - lib/aws-sdk-comprehend/types.rb
 
Overview
Information about each word or line of text in the input document.
For additional information, see [Block] in the Amazon Textract API reference.
Constant Summary collapse
- SENSITIVE =
 []
Instance Attribute Summary collapse
- 
  
    
      #block_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The block represents a line of text or one word of text.
 - 
  
    
      #geometry  ⇒ Types::Geometry 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Co-ordinates of the rectangle or polygon that contains the text.
 - 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Unique identifier for the block.
 - 
  
    
      #page  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Page number where the block appears.
 - 
  
    
      #relationships  ⇒ Array<Types::RelationshipsListItem> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of child blocks of the current block.
 - 
  
    
      #text  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The word or line of text extracted from the block.
 
Instance Attribute Details
#block_type ⇒ String
The block represents a line of text or one word of text.
- 
WORD - A word that’s detected on a document page. A word is one or more ISO basic Latin script characters that aren’t separated by spaces.
 - 
LINE - A string of tab-delimited, contiguous words that are detected on a document page
 
      557 558 559 560 561 562 563 564 565 566  | 
    
      # File 'lib/aws-sdk-comprehend/types.rb', line 557 class Block < Struct.new( :id, :block_type, :text, :page, :geometry, :relationships) SENSITIVE = [] include Aws::Structure end  | 
  
#geometry ⇒ Types::Geometry
Co-ordinates of the rectangle or polygon that contains the text.
      557 558 559 560 561 562 563 564 565 566  | 
    
      # File 'lib/aws-sdk-comprehend/types.rb', line 557 class Block < Struct.new( :id, :block_type, :text, :page, :geometry, :relationships) SENSITIVE = [] include Aws::Structure end  | 
  
#id ⇒ String
Unique identifier for the block.
      557 558 559 560 561 562 563 564 565 566  | 
    
      # File 'lib/aws-sdk-comprehend/types.rb', line 557 class Block < Struct.new( :id, :block_type, :text, :page, :geometry, :relationships) SENSITIVE = [] include Aws::Structure end  | 
  
#page ⇒ Integer
Page number where the block appears.
      557 558 559 560 561 562 563 564 565 566  | 
    
      # File 'lib/aws-sdk-comprehend/types.rb', line 557 class Block < Struct.new( :id, :block_type, :text, :page, :geometry, :relationships) SENSITIVE = [] include Aws::Structure end  | 
  
#relationships ⇒ Array<Types::RelationshipsListItem>
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that’s part of the line of text.
      557 558 559 560 561 562 563 564 565 566  | 
    
      # File 'lib/aws-sdk-comprehend/types.rb', line 557 class Block < Struct.new( :id, :block_type, :text, :page, :geometry, :relationships) SENSITIVE = [] include Aws::Structure end  |