NlpSaftLabeledSpan

GoogleApi.ContentWarehouse.V1.Model.NlpSaftLabeledSpan


Table of Contents ▼

Jump to a specific part of the page:

Description

A generic span, possibly with an associated label. The span may be defined by either byte-level or token-level boundaries.

Attributes List

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

View Attributes

Attributes

  1. byteEnd (type: integer(), default: nil)
    - note: inclusive
  2. byteStart (type: integer(), default: nil)
    - The indices of the first and last byte covered by the span.
  3. label (type: String.t, default: nil)
    - The label associated with the span.
  4. labelScores (type: map(), default: nil)
    - Optionally stores alternative labels with associated scores for the span.
  5. score (type: number(), default: nil)
    - A score associated with the span.
  6. tokenEnd (type: integer(), default: nil)
    - note: inclusive
  7. tokenStart (type: integer(), default: nil)
    - The indices of the first and last token covered by the span.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSaftLabeledSpan{
byteEnd: integer() | nil,
byteStart: integer() | nil,
label: String.t() | nil,
labelScores: map() | nil,
score: number() | nil,
tokenEnd: integer() | nil,
tokenStart: integer() | nil
}

Function

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

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