Compartilhar via


TextAnalysisModelFactory.OrdinalMetadata(String, RelativeTo, String) Method

Definition

Initializes a new instance of OrdinalMetadata.

public static Azure.AI.Language.Text.OrdinalMetadata OrdinalMetadata (string offset = default, Azure.AI.Language.Text.RelativeTo relativeTo = default, string value = default);
static member OrdinalMetadata : string * Azure.AI.Language.Text.RelativeTo * string -> Azure.AI.Language.Text.OrdinalMetadata
Public Shared Function OrdinalMetadata (Optional offset As String = Nothing, Optional relativeTo As RelativeTo = Nothing, Optional value As String = Nothing) As OrdinalMetadata

Parameters

offset
String

The offset with respect to the reference (e.g., offset = -1 indicates the second to last).

relativeTo
RelativeTo

The reference point that the ordinal number denotes.

value
String

A simple arithmetic expression that the ordinal denotes.

Returns

A new OrdinalMetadata instance for mocking.

Applies to