NormalizedString(String, String, Int32[], Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.