View Source GoogleApi.DocumentAI.V1beta3.Model.GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment (google_api_document_ai v0.39.0)

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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.