Skip to main content

Module tokens

Module tokens 

Source

Structs§

Tokenizer
A tokenizer that can count tokens in text.

Enums§

TokenizerKind
Which tokenizer to use for token counting.

Functions§

estimate_tokens
Estimate the number of tokens for a piece of content using heuristic.
is_prose_extension
Check if a file extension indicates prose content