GoogleApi.DocumentAI.V1beta3.Model.GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment (google_api_document_ai v0.21.0) View Source

A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset

Attributes

  • endIndex (type: String.t, default: nil) - TextSegment half open end UTF-8 char index in the Document.text.
  • startIndex (type: String.t, default: nil) - TextSegment start UTF-8 char index in the Document.text.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() ::
  %GoogleApi.DocumentAI.V1beta3.Model.GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment{
    endIndex: String.t() | nil,
    startIndex: String.t() | nil
  }

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.