NlpSemanticParsingDateTimeAnnotation

GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDateTimeAnnotation


Table of Contents ▼

Jump to a specific part of the page:

Description

Example: "Remind me to go to the store on (Friday) (9am)" would output two non-overlapping and unrelated annotations. One would have a start_date = Friday and the other would have start_time = 9am. It's possible for Friday to be one of several upcoming Friday's, so start_date is a repeated field. Next ID: 10

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. dateType (type: String.t, default: nil)
    -
  2. endDate (type: list(String.t), default: nil)
    -
  3. endTime (type: list(String.t), default: nil)
    -
  4. endWeekday (type: String.t, default: nil)
    -
  5. rawText (type: String.t, default: nil)
    -
  6. startDate (type: list(String.t), default: nil)
    - NOTE: None of these are co-indexed. If the query is 'morning', there could be multiple start_time's, start_date's, end_date's, and end_time's, and they do not correspond to one another in any structured way.
  7. startTime (type: list(String.t), default: nil)
    -
  8. startWeekday (type: String.t, default: nil)
    -
  9. timeType (type: String.t, default: nil)
    -

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDateTimeAnnotation{
dateType: String.t() | nil,
endDate: [String.t()] | nil,
endTime: [String.t()] | nil,
endWeekday: String.t() | nil,
rawText: String.t() | nil,
startDate: [String.t()] | nil,
startTime: [String.t()] | nil,
startWeekday: String.t() | nil,
timeType: String.t() | nil
}

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDateTimeAnnotation