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

The quantification of device(s) in the query. For example, "three speakers", "all TVs", etc. Usually, we should have either lexical field or number field. However, there are some special words which we will set both fields. For example, "all 3" will have the semantic: {lexical=ALL, number=3}. Note that "both" is simply modeled as {lexical=ALL}.

Attributes

  • lexical (type: String.t, default: nil) -
  • number (type: integer(), default: nil) - Numerical quantification. E.g., "three speakers".

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaQuantification{
    lexical: String.t() | nil,
    number: integer() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.