NlxDataSchemaLanguageSpan

GoogleApi.ContentWarehouse.V1.Model.NlxDataSchemaLanguageSpan


Table of Contents ▼

Jump to a specific part of the page:

Description

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 List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

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

Type

@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
}

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.NlxDataSchemaLanguageSpan