NlpSaftPhrase

GoogleApi.ContentWarehouse.V1.Model.NlpSaftPhrase


Table of Contents ▼

Jump to a specific part of the page:

Description

A document phrase marks a range of tokens in a document as a phrase. The indices are token positions in the document.

Attributes List

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

View Attributes

Attributes

  1. end (type: integer(), default: nil)
    -
  2. facet (type: String.t, default: nil)
    -
  3. head (type: integer(), default: nil)
    - The head token in the phrase is the id of the top-most token within the phrase. It either has an arc from outside the phrase going to it, or it is a root token of the sentence. A value of -1 indicates that the head has not yet been computed for the phrase (not the same semantics as the head of a token!). Note that even when it is uniquely defined, there is no guarantee that the head is set for entities and measurements within a document: you may need to explicitly compute it.
  4. start (type: integer(), default: nil)
    - First and last token in the phrase. The phrase goes from start to end (inclusive).

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSaftPhrase{
end: integer() | nil,
facet: String.t() | nil,
head: integer() | nil,
start: integer() | nil
}

Function

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

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