Expand description
Claude tokenizer matching ai-tokenizer’s lookup/BPE hybrid encoding.
Functions§
- count_
tokens - Count Claude tokens in
text. - encode
- Encode
textinto Claude token IDs.
Claude tokenizer matching ai-tokenizer’s lookup/BPE hybrid encoding.
text.text into Claude token IDs.