ITokenizerService
Wisej.AI.Services.ITokenizerService
public interface ITokenizerServicePublic Interface ITokenizerServiceMethods
CountTokens(text, encoder)
Parameter
Type
Description
ITokenizerService tokenizerService = GetTokenizerService();
int tokenCount = tokenizerService.CountTokens("This is a sample text.");
Tokenize(text, encoder)
Parameter
Type
Description
TruncateContent(text, maxTokens, encoder)
Parameter
Type
Description
Implemented By
Name
Description
Last updated
