Interface
ITokensCounter

Defines a contract for counting tokens in a given input.

Definition

Namespace:Telerik.Documents.AI.Core

Assembly:Telerik.Documents.AI.Core.dll

Syntax:

cs-api-definition
public interface ITokensCounter

Derived Classes: DefaultTokensCounter

Methods

Count(string)

Counts the number of tokens in the specified input.

Declaration

cs-api-definition
Task<int> Count(string input)

Parameters

input

string

The input data to analyze.

Returns

Task<int>

The number of tokens in the input.

In this article
DefinitionMethodsCount(string)
Not finding the help you need?
Contact Support