Method CreateWordPieceAsync
- Namespace
- Qavren.Edge.Embeddings.Onnx
- Assembly
- Qavren.Edge.Embeddings.Onnx.dll
CreateWordPieceAsync(string, WordPieceTokenizerOptions?, CancellationToken)
Builds a WordPiece tokenizer from a vocab.txt on disk, asynchronously.
public static Task<IEdgeTokenizer> CreateWordPieceAsync(string vocabFilePath, WordPieceTokenizerOptions? options = null, CancellationToken cancellationToken = default)
Parameters
vocabFilePathstringThe absolute path of the vocabulary.
optionsWordPieceTokenizerOptionsConstruction settings, or null for the defaults.
cancellationTokenCancellationTokenCancellation.
Returns
- Task<IEdgeTokenizer>
The tokenizer.