NlpSemanticParsingDatetimeShiftedRelativeDateTime

AI Overview😉

  • The potential purpose of this module is to analyze and understand natural language expressions related to dates and times, such as "2 days before March 1" or "next Friday", and to identify the base date, shift amount, and direction (past or future) in these expressions.
  • This module could impact search results by allowing Google to better understand and interpret date-related queries, such as "events happening next weekend" or "news from last month". This could lead to more accurate and relevant search results, especially for queries that involve complex date and time calculations.
  • To be more favorable to this function, a website could use clear and concise language when expressing dates and times, such as using specific dates instead of relative terms like "soon" or "next week". Additionally, using structured data and schema markup for events and dates could help Google's algorithm better understand and extract date-related information from the website.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeShiftedRelativeDateTime (google_api_content_warehouse v0.4.0)

Attributes

  • base (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeAbsoluteDateTime.t, default: nil) - The base could be an absolute datetime point for example: "March 1", a relative datetime point, for example: "2 days before March 1" or a symbolic base type, for example: CURRENT_DATETIME. This could also be used to combine EXPLICIT_PRONOUN with the actual value of that reference being setup as a datetime point in base or relative_base
  • baseType (type: String.t, default: nil) -
  • metadata (type: String.t, default: nil) - Can be used to tag relative datetime expressions with metadata information in the grammar.
  • relativeBase (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeResolutionProperties.t, default: nil) -
  • shiftAmount (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity.t, default: nil) -
  • shiftPast (type: boolean(), default: nil) - If true, shifting to the past; if false, shifting to the future.

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.NlpSemanticParsingDatetimeShiftedRelativeDateTime{
    base:
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeAbsoluteDateTime.t()
      | nil,
    baseType: String.t() | nil,
    metadata: String.t() | nil,
    relativeBase:
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeResolutionProperties.t()
      | nil,
    shiftAmount:
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity.t()
      | nil,
    shiftPast: boolean() | nil
  }

Functions

Link to this function

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.