View Source GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity (google_api_content_warehouse v0.3.0)

Attributes

  • modifier (type: String.t, default: nil) - For internal use - DateTime subgrammar users should look at Duration.modifier. = MORE in [3 more days].
  • number (type: float(), default: nil) - = 3 in "3 milliseconds".
  • numberSpan (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t, 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.
  • symbolicQuantity (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity.t), 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.
  • unit (type: String.t, default: nil) - = MILLISECOND in "3 milliseconds".

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

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

Unwrap a decoded JSON object into its complex fields.