Search Results for

    Show / Hide Table of Contents

    Interface ITokenizer

    Interface for tokenizer

    Namespace: DotnetPrompt.Abstractions.Tools
    Assembly: DotnetPrompt.Abstractions.dll
    Syntax
    public interface ITokenizer
    Remarks

    A tokenizer is a software component that breaks down a piece of text into smaller units called tokens.

    Methods

    | Improve this Doc View Source

    Encode(string)

    Encode text as a list of numerical tokens

    Declaration
    IList<int> Encode(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    IList<int>
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Encode(string)
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt