View Source GoogleApi.Language.V1.Model.TextSpan (google_api_language v0.14.0)

Represents a text span in the input document.

Attributes

  • beginOffset (type: integer(), default: nil) - The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
  • content (type: String.t, default: nil) - The content of the text span, which is a substring of the document.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Language.V1.Model.TextSpan{
  beginOffset: integer() | nil,
  content: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.