Share via


TokenizerResult(String, String, IReadOnlyList<Split>, Boolean) Constructor

Definition

Create a new object of the TokenizerResult object.

public TokenizerResult (string originalString, string normalizedString, System.Collections.Generic.IReadOnlyList<Microsoft.ML.Tokenizers.Split> splits, bool offsetsMappedToOriginalString);
new Microsoft.ML.Tokenizers.TokenizerResult : string * string * System.Collections.Generic.IReadOnlyList<Microsoft.ML.Tokenizers.Split> * bool -> Microsoft.ML.Tokenizers.TokenizerResult
Public Sub New (originalString As String, normalizedString As String, splits As IReadOnlyList(Of Split), offsetsMappedToOriginalString As Boolean)

Parameters

originalString
String

The list of tokens to merge.

normalizedString
String

The list of tokens to merge.

splits
IReadOnlyList<Split>

The list of tokens to merge.

offsetsMappedToOriginalString
Boolean

Indicate whether the offsets is mapped to the original string or the normalized string.

Applies to