NlpSemanticParsingDatetimeQuantity

AI Overview😉

  • The potential purpose of this module is to parse and understand datetime-related quantities in search queries, such as "3 days", "5 nights", or "one minute and 30 seconds". It aims to extract the numerical value, unit, and any modifiers (e.g., "in 3 more days") from the query.
  • This module could impact search results by allowing Google to better understand the context and intent behind datetime-related searches. For example, it could help differentiate between searches for "5 days" and "5 nights", or prioritize results that match the specific timeframe mentioned in the query. This could lead to more accurate and relevant search results.
  • To be more favorable for this function, a website could:
    • Use clear and consistent datetime formatting throughout the website.
    • Provide specific and accurate information about dates and times related to the content (e.g., event schedules, deadlines, etc.).
    • Use schema markup or other structured data to help Google understand the datetime-related information on the website.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity (google_api_content_warehouse v0.4.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

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@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

Link to this function

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.