Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ReaderHeuristicTokenCounter

Namespace OfficeIMO.Reader
Assembly OfficeIMO.Reader.Core
Modifiers sealed

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

Inheritance

  • Object
  • ReaderHeuristicTokenCounter

Usage

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

Returned or exposed by

Methods

public Int32 CountTokens(String text) #
Returns: Int32

Counts tokens in the supplied text.

Parameters

text System.String requiredposition: 0

Properties

public static ReaderHeuristicTokenCounter Instance { get; } #

Shared stateless instance.

public String Id { get; } #

Stable counter identifier retained in chunking evidence.