Share via


Token(Int32, String, ValueTuple<Int32,Int32>) Constructor

Definition

Construct a new Token object using the token value, Id, and the offset mapping to the original string.

public Token (int id, string value, (int, int) offset);
new Microsoft.ML.Tokenizers.Token : int * string * ValueTuple<int, int> -> Microsoft.ML.Tokenizers.Token
Public Sub New (id As Integer, value As String, offset As ValueTuple(Of Integer, Integer))

Parameters

id
Int32

The Id value associated to the token.

value
String

The token string value.

offset
ValueTuple<Int32,Int32>

The offset mapping to the original string.

Applies to