alexa
menu

Document Processing

    Show / Hide Table of Contents

    Interface ITokenCounter

    Defines a mechanism for counting tokens in text.

    Namespace: Syncfusion.DocumentChunking
    Assembly: Syncfusion.DocumentChunking.Base.dll
    Syntax
    public interface ITokenCounter
    Remarks

    Implementations must return a non-negative token count.

    Methods

    CountTokens(String)

    Counts the tokens in the specified text.

    Declaration
    int CountTokens(string text)
    Parameters
    Type Name Description
    System.String text

    The text for which to count tokens.

    Returns
    Type Description
    System.Int32

    The non-negative number of tokens in text.

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved