GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDuration
Table of Contents ▼
Jump to a specific part of the page:
Description
To represent unanchored durations - the length of a date/time expression not related to calendar in local context. E.g., "play first (DURATION: 5 minutes) of Yellow Submarine", "it takes (DURATION: more than 3 days) to finish." In contrast, queries like: "wake me up in 5 minutes" will be resolved to a AbsoluteDateTime since the query indicates that the reference is now. A duration can be turned into a range if either end is anchored.
Attributes List
This module has the following attributes (case-insensitive ascending order):
Attributes
-
evalData
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData
, default:nil
)
- This field of the Duration 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. -
modifier
(type:String.t
, default:nil
)
- For expressions such as "about 2 hrs". -
quantity
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity
, default:nil
)
- -
span
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeSpan
, default:nil
)
- See comments of Span.
Type
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDuration{
evalData: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t() | nil,
modifier: String.t() | nil,
quantity: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity.t() | nil,
span: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeSpan.t() | nil
}
evalData: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t() | nil,
modifier: String.t() | nil,
quantity: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity.t() | nil,
span: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeSpan.t() | nil
}
Function
@spec decode(struct(), keyword()) :: struct()Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDuration