共用方式為


TextAnalysisModelFactory.TemporalSpanValues Method

Definition

Initializes a new instance of TemporalSpanValues.

public static Azure.AI.Language.Text.TemporalSpanValues TemporalSpanValues (string begin = default, string end = default, string duration = default, Azure.AI.Language.Text.TemporalModifier? modifier = default, string timex = default);
static member TemporalSpanValues : string * string * string * Nullable<Azure.AI.Language.Text.TemporalModifier> * string -> Azure.AI.Language.Text.TemporalSpanValues
Public Shared Function TemporalSpanValues (Optional begin As String = Nothing, Optional end As String = Nothing, Optional duration As String = Nothing, Optional modifier As Nullable(Of TemporalModifier) = Nothing, Optional timex As String = Nothing) As TemporalSpanValues

Parameters

begin
String

Start value for the span.

end
String

End value for the span.

duration
String

An optional duration value formatted based on the ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601#Durations).

modifier
Nullable<TemporalModifier>

Modifier for datetime to indicate point of reference like before, after etc.

timex
String

An optional triplet containing the beginning, the end, and the duration all stated as ISO 8601 formatted strings.

Returns

A new TemporalSpanValues instance for mocking.

Applies to