Dela via


NormalizedString(String, String, Int32[], Boolean) Constructor

Definition

Create NormalizedString object containing the normalization of the original string and the mapping between the original and the normalized string.

public NormalizedString (string original, string normalizedString, int[]? mapping, bool isOneToOneMapping);
new Microsoft.ML.Tokenizers.NormalizedString : string * string * int[] * bool -> Microsoft.ML.Tokenizers.NormalizedString
Public Sub New (original As String, normalizedString As String, mapping As Integer(), isOneToOneMapping As Boolean)

Parameters

original
String

The original string before normalization.

normalizedString
String

The normalized string.

mapping
Int32[]

The mapping between the normalized string and the original string.

isOneToOneMapping
Boolean

Indicate whether the mapping is one-to-one.

Applies to