View Source GoogleApi.ContentWarehouse.V1.Model.NlxDataSchemaLanguageSpan (google_api_content_warehouse v0.4.0)

A span of text that is written using a specified language (or languages). language_spans do not need to cover all of the characters in a text -- in particular, some pieces of text may not use any language. Depending on the model used to generate them, multilingual text can be encoded using overlapping or non- overlapping language_spans; and using one or multiple language_codes per language_span.

Attributes

  • bytes (type: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerSpan.t, default: nil) - The bytes in this span.
  • characters (type: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerSpan.t, default: nil) - The characters in this span.
  • document (type: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerIndex.t, default: nil) - The document that contains this span.
  • languageCode (type: list(String.t), default: nil) - A set of BCP-47 codes indicating the language(s) of this span of text.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlxDataSchemaLanguageSpan{
  bytes: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerSpan.t() | nil,
  characters:
    GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerSpan.t() | nil,
  document:
    GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerIndex.t() | nil,
  languageCode: [String.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.