Token(Int32, String, ValueTuple<Int32,Int32>) 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.
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.