NlpSemanticParsingProtoActionsOnGoogleAogSlot

GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingProtoActionsOnGoogleAogSlot


Table of Contents ▼

Jump to a specific part of the page:

Description

In simple cases, each NLU slot will contain one or multiple possible values. But in the case of a composite entity - slots can have a complex tree structure. Each slot can represent a List parameter. List parameters are only allowed at the top level, i.e. lists can't ne nested in maps. Next Id: 9 LINT.IfChange

Attributes List

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

View Attributes

Attributes

  1. entityId (type: String.t, default: nil)
    - ID of the entity of this slot.
  2. numBytes (type: integer(), default: nil)
    - Number of bytes of this slot in resolved query.
  3. original (type: String.t, default: nil)
    - Part of input text, matched by that slot. In the case of composite slots, each slot should have its own original.
  4. parameterName (type: String.t, default: nil)
    - Name of parameter of this slot.
  5. slotList (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingProtoActionsOnGoogleSlotList, default: nil)
    - Represents a "list parameter". Each parameter may be declared as a list and have multiple slot values, referenced by a single alias. Each slot value in a list may contain multiple possible values. For example: aqua return 3 dates if the year is not specified in a query - one for the current year, one for the past year, and one for the following year. If user defines a list parameter with type @sys.date, and the query contains multiple dates - we should return a list of possible values for each date from the query, i.e. it will be a list of list of dates.
  6. slotMap (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingProtoActionsOnGoogleSlotMap, default: nil)
    - Represents a structured value. Used in composite entities. Composite entities can have arbitrary structure.
  7. startByte (type: integer(), default: nil)
    - Start byte position of this slot in resolved query.
  8. value (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingProtoActionsOnGoogleSlotValue, default: nil)
    - One or more possible values. This field does not represent a list parameter.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingProtoActionsOnGoogleAogSlot{
entityId: String.t() | nil,
numBytes: integer() | nil,
original: String.t() | nil,
parameterName: String.t() | nil,
slotList: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingProtoActionsOnGoogleSlotList.t() | nil,
slotMap: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingProtoActionsOnGoogleSlotMap.t() | nil,
startByte: integer() | nil,
value: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingProtoActionsOnGoogleSlotValue.t() | nil
}

Function

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

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