AWSComprehendBlock

Objective-C

@interface AWSComprehendBlock

Swift

class AWSComprehendBlock

Information about each word or line of text in the input document.

For additional information, see Block in the Amazon Textract API reference.

  • 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

    Declaration

    Objective-C

    @property (nonatomic) AWSComprehendBlockType blockType;

    Swift

    var blockType: AWSComprehendBlockType { get set }
  • Co-ordinates of the rectangle or polygon that contains the text.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSComprehendGeometry *_Nullable geometry;

    Swift

    var geometry: AWSComprehendGeometry? { get set }
  • Unique identifier for the block.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable identifier;

    Swift

    var identifier: String? { get set }
  • Page number where the block appears.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable page;

    Swift

    var page: NSNumber? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSComprehendRelationshipsListItem *> *_Nullable relationships;

    Swift

    var relationships: [AWSComprehendRelationshipsListItem]? { get set }
  • The word or line of text extracted from the block.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable text;

    Swift

    var text: String? { get set }