NlpSemanticParsingDatetimeQuantity

GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity


Table of Contents ▼

Jump to a specific part of the page:

Description

No description given.

Attributes List

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

View Attributes

Attributes

  1. modifier (type: String.t, default: nil)
    - For internal use - DateTime subgrammar users should look at Duration.modifier. = MORE in [3 more days].
  2. number (type: float(), default: nil)
    - = 3 in "3 milliseconds".
  3. numberSpan (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData, default: nil)
    - This field keeps the span info of the number element in a quantity expression, which is useful for downstream components to obtain the number annotations inside a quantity when necessary.
  4. symbolicQuantity (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity), default: nil)
    - Quantities are typically converted into milliseconds, regardless of the units the user used. Sometimes this loses crucial information, e.g., "5 days" vs "5 nights". When quantities are converted to milliseconds, 'symbolic_quantity' will contain the sequence of units that the user actually supplied. This can be more than one element in cases like "one minute and 30 seconds". In cases where 'symbolic_quantity' has more than one element, THERE IS NO GUARANTEED ORDER between elements.
  5. unit (type: String.t, default: nil)
    - = MILLISECOND in "3 milliseconds".

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity{
modifier: String.t() | nil,
number: float() | nil,
numberSpan: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t() | nil,
symbolicQuantity: [#t:t/0()] | nil,
unit: String.t() | nil
}

Function

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

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