NlpSemanticParsingDatetimeRange

AI Overview😉

  • Potential purpose of module: This module appears to be responsible for parsing and understanding date and time ranges mentioned in natural language text, such as "from Monday to Wednesday" or "morning". It breaks down the input into its constituent parts, including begin and end dates, durations, and fuzzy ranges, and provides a structured representation of the date and time range.
  • Impact on search results: This module could impact search results by allowing Google to better understand and interpret date and time ranges mentioned in search queries. This could lead to more accurate and relevant results, especially when searching for events, appointments, or time-sensitive information. For example, if a user searches for "events from Monday to Wednesday", Google could use this module to understand the date range and provide relevant results.
  • How a website may change things to be more favorable for this function: To be more favorable for this function, a website could use clear and concise language when mentioning date and time ranges. This could include using specific dates and times, or using natural language phrases that are easily understandable by the module. Additionally, providing structured data about events and appointments, such as schema.org markup, could help Google's algorithm to better understand and interpret the date and time ranges mentioned on the website.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

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

Range has 4 use cases: 1. with an explicit begin and an explicit end, e.g. "from Monday to Wednesday." Both |begin| and |end| are filled in this case. 2. a point date/time expression is used as a range at a finer granularity. E.g., in "first Monday of this month", "this month" is used as a range. In this case, only |begin| will be filled and the |end| will be filled during the grounding process. 3. a fuzzy date/time range such as "morning" or "evening." 4. with a relative begin and a relative end, e.g. "from yesterday to next Monday." Note: this may be used in a mixture of exact/relative begin and end. Next available ID: 14.

Attributes

  • begin (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeAbsoluteDateTime.t, default: nil) - Deprecated fields. Do NOT use.
  • beginRelative (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime.t, default: nil) -
  • duration (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity.t, default: nil) - if |duration| is set, one field from start or finish must be populated, but not both. |exclusive| value is still relevant to decide if the endpoints of the range are included in the range (value defined in the start/finish fields as well as the datetime value resulting of offseting the duration over the given range endpoint).
  • end (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeAbsoluteDateTime.t, default: nil) -
  • endRelative (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime.t, default: nil) -
  • exclusive (type: boolean(), default: nil) -
  • finish (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t, default: nil) -
  • fuzzyRange (type: String.t, default: nil) -
  • metadata (type: String.t, default: nil) -
  • properties (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeResolutionProperties.t, default: nil) -
  • rangeModifier (type: String.t, default: nil) - Modifier that return the appropriate subrange. For more information, see the description of RangeOfDateTimeModifier. Example: late* morning
  • start (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t, default: nil) - |start| and |finish| are inclusive unless exclusive field is true. the values in start and finish can be an absolute point, a relative or another range. Recurrences and repeated values are not expected/allowed.
  • symbolicValue (type: String.t, default: nil) - The field is set if the range is the result of resolving/grounding a relative datetime expression referring to a part of the day. E.g. "morning", "afternoon", "evening", "night", "tonight", etc.

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.NlpSemanticParsingDatetimeRange{
  begin:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeAbsoluteDateTime.t()
    | nil,
  beginRelative:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime.t()
    | nil,
  duration:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity.t()
    | nil,
  end:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeAbsoluteDateTime.t()
    | nil,
  endRelative:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime.t()
    | nil,
  exclusive: boolean() | nil,
  finish:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t()
    | nil,
  fuzzyRange: String.t() | nil,
  metadata: String.t() | nil,
  properties:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeResolutionProperties.t()
    | nil,
  rangeModifier: String.t() | nil,
  start:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t()
    | nil,
  symbolicValue: 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.