NlpSaftConstituencyNode

GoogleApi.ContentWarehouse.V1.Model.NlpSaftConstituencyNode


Table of Contents ▼

Jump to a specific part of the page:

Description

Constituency parse tree node with tokens as the leaf nodes.

Attributes List

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

View Attributes

Attributes

  1. child (type: list(integer()), default: nil)
    - An arbitrary number of children, ordered from left to right; empty for preterminals. Represented via indices into Document.constituency_node.
  2. label (type: String.t, default: nil)
    - The label of the current node.
  3. phrase (type: GoogleApi.ContentWarehouse.V1.Model.NlpSaftPhrase, default: nil)
    - A phrase that contains information about the span and the (optional) head token. For terminal nodes the head of the phrase holds the word.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSaftConstituencyNode{
child: [integer()] | nil,
label: String.t() | nil,
phrase: GoogleApi.ContentWarehouse.V1.Model.NlpSaftPhrase.t() | nil
}

Function

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

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