GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime
Table of Contents ▼
Jump to a specific part of the page:
Description
This provides a semi-abstract description for relative datetime expressions. - ShiftedRelativeDateTime encodes datetimes that arise from before/after expressions (e.g. [three days ago], [2 days after March 1st]). - FetchedRelativeDateTime encodes expressions that are retrieval-type statements (e.g. [next weekend], [the last two Mondays]). Next field: 5
Attributes List
This module has the following attributes (case-insensitive ascending order):
Attributes
-
fetched
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeFetchedRelativeDateTime
, default:nil
)
- -
metadata
(type:String.t
, default:nil
)
- -
modifier
(type:String.t
, default:nil
)
- When a relative datetime which resolves into a range is being used as the endpoint of a range (begin_relative/end_relative), its begin/end will be taken accordingly unless this modifier indicates the opposite: begin_relative with relative range and modifier == AFTER means that its end will be taken as the beginning of the resulting range. Similarly, end_relative with a relative range and modifier == BEFORE means that its begin will be taken as the end of the resulting range. E.g. "after next month" will be a range with a begin_relative that will take the end of "next month" as its starting point (exclusive). values other than AFTER and BEFORE in the specific conditions explained here will be ignored and have no effect in the resolution of RelativeDateTimes. -
shifted
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeShiftedRelativeDateTime
, default:nil
)
-
Type
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime{
fetched: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeFetchedRelativeDateTime.t() | nil,
metadata: String.t() | nil,
modifier: String.t() | nil,
shifted: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeShiftedRelativeDateTime.t() | nil
}
fetched: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeFetchedRelativeDateTime.t() | nil,
metadata: String.t() | nil,
modifier: String.t() | nil,
shifted: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeShiftedRelativeDateTime.t() | nil
}
Function
@spec decode(struct(), keyword()) :: struct()Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime