Model.Tokenize(String) Method
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.
Tokenize a sequence string to a list of tokens.
public abstract System.Collections.Generic.IReadOnlyList<Microsoft.ML.Tokenizers.Token> Tokenize(string sequence);
abstract member Tokenize : string -> System.Collections.Generic.IReadOnlyList<Microsoft.ML.Tokenizers.Token>
Public MustOverride Function Tokenize (sequence As String) As IReadOnlyList(Of Token)
Parameters
- sequence
- String
The sequence to tokenize.
Returns
The list of tokens generated from the sequence tokenization.