Bpe.Tokenize(String) Method

Definition

Tokenize a sequence string to a list of tokens.

public override System.Collections.Generic.IReadOnlyList<Microsoft.ML.Tokenizers.Token> Tokenize (string sequence);
override this.Tokenize : string -> System.Collections.Generic.IReadOnlyList<Microsoft.ML.Tokenizers.Token>
Public Overrides 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.

Applies to