Claude Tokenizer
Claude Tokenizer is a Rust library for tokenizing text using the Anthropic Claude models. It provides functionality to tokenize text and count tokens, which is useful for working with Claude and other large language models.
Features
- Tokenizer for Anthropic's Claude AI models
tokenizefunction to convert text into tokenscount_tokensfunction to calculate the number of tokens in a given text- Embedded JSON tokenizer data for offline use
- Built on the
tokenizerslibrary for efficient tokenization
Installation
Add this to your Cargo.toml:
[]
= "0.2.0"
Then, run cargo build to build your project.