Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ReaderHeuristicTokenCounter

OfficeIMO.Reader

Namespace
OfficeIMO.Reader
Assembly
OfficeIMO.Reader.Core
Source revision
90fbca630045 with working tree changes
Modifiers
sealed

Dependency-free token estimate using approximately four characters per token.

Inheritance

  • object
  • ReaderHeuristicTokenCounter

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public int CountTokens(string text) #

Counts tokens in the supplied text.

Parameters

text string required

Returns

int

Properties

public static ReaderHeuristicTokenCounter Instance { get; } #

Shared stateless instance.

public string Id { get; } #

Stable counter identifier retained in chunking evidence.