NlpSemanticParsingDatetimeDateTime

AI Overview😉

  • The potential purpose of this module is to analyze and understand natural language expressions related to dates and times, such as "Mondays in April, 2014" or "tomorrow at 8am". It appears to be a part of Google's natural language processing (NLP) capabilities, specifically designed to parse and interpret date and time-related queries.
  • This module could impact search results by allowing Google to better understand and interpret user queries that contain dates and times. This could lead to more accurate and relevant search results, especially for queries that involve specific dates or time ranges. For example, if a user searches for "events in New York City on July 4th", this module could help Google understand the date and time component of the query and return more relevant results.
  • To be more favorable for this function, a website could ensure that its content is optimized for natural language processing by using clear and concise language, especially when it comes to dates and times. This could include using standardized date and time formats, providing explicit dates and times for events or schedules, and using keywords related to dates and times in metadata and content. Additionally, websites could consider using schema markup to provide additional context and structure to their date and time-related content, which could help Google's NLP algorithms better understand and interpret the information.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

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

The top-level DATE/TIME representation. It can represent either (1) one or multiple Date/Time ranges, or (2) one or multiple of Date/Time points, or (3) a recurrent date/time expression. Next available ID: 12. Only one of |range|, |point| and |recurrent| will be set: |range| contains a list of resolved Date/Time ranges. |point| contains a list of resolved Date/Time points. |recurrent| contains the representation for periodical dates/times. |range| and |point| are repeated to accommodate the need when the date/time expression under one non-terminal is resolved to a list of correct values. For example, "Mondays in April, 2014" may have 4 correct dates.

Attributes

  • compositionElement (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t, default: nil) - For temporal expressions that consist of components with different types, the elements in the composition are nested according to the order they should be grounded/resolved. For example, "tomorrow at 8am" has a relative component [tomorrow] and an absolute datetime component [8am] so the annotation will be represented in the following way, indicating that the relative datetime for tomorrow should be grounded first, and then resolve the actual 8am point for that given date: point { hour: 8 hour_state: UNAMBIGUOUS properties { time_format: AM_PM_TOKEN } } composition_element { relative { fetched { ordinal: 1 target { unit: DAY } base_type: CURRENT_DATETIME } } grounding_stage: UNGROUNDED } grounding_stage: UNGROUNDED_COMPOSITION The composition_element field will be populated only when the grounding_stage is set to UNGROUNDED_COMPOSITION and it will hold the nested DateTime value for the rest the compositional expression. More details in: go/datetime-resolution-decoupling.
  • deleted7 (type: boolean(), default: nil) - Deprecated fields. Do NOT use.
  • deleted8 (type: boolean(), default: nil) -
  • evalData (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t, default: nil) - This field of the DateTime message should not in general be used by outside clients of the grammar. It is intended to be used internally in Aqua for evaluation purposes. The rationale is that token counts depend on the particular tokenization used in Aqua which may be different from the one used by the client and may change from time to time. Outside clients should not create a dependency on the current tokenization used in Aqua.
  • groundingStage (type: String.t, default: nil) -
  • point (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeAbsoluteDateTime.t), default: nil) -
  • properties (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeResolutionProperties.t, default: nil) -
  • range (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRange.t), default: nil) - Note that there is a difference between this scenario and an ambiguous date/time expression. The latter is resolved to multiple proto messages, not multiple values within one proto message. To be concrete, consider "Monday" in "Monday football". It is ambiguous and can be reasonably resolved to "Monday last week," "Monday this week" and "Monday next week." The 3 values are represented as 3 separate DateTime messages, not 3 values within one DateTime message.
  • recurrent (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRecurrent.t, default: nil) -
  • relative (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime.t, default: nil) -
  • span (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeSpan.t, default: nil) - See comments of Span.

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.NlpSemanticParsingDatetimeDateTime{
  compositionElement: t() | nil,
  deleted7: boolean() | nil,
  deleted8: boolean() | nil,
  evalData:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t()
    | nil,
  groundingStage: String.t() | nil,
  point:
    [
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeAbsoluteDateTime.t()
    ]
    | nil,
  properties:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeResolutionProperties.t()
    | nil,
  range:
    [GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRange.t()]
    | nil,
  recurrent:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRecurrent.t()
    | nil,
  relative:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime.t()
    | nil,
  span:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeSpan.t() | nil
}

Functions

Link to this function

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.