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):
Attributes
-
dateType
(type:String.t
, default:nil
)
- -
endDate
(type:list(String.t)
, default:nil
)
- -
endTime
(type:list(String.t)
, default:nil
)
- -
endWeekday
(type:String.t
, default:nil
)
- -
rawText
(type:String.t
, default:nil
)
- -
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. -
startTime
(type:list(String.t)
, default:nil
)
- -
startWeekday
(type:String.t
, default:nil
)
- -
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
}
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