Packages for keyword “tokenizer”
These packages are available as a package collection, usable in Xcode or SwiftPM.
swift-casification
Package for tokenizing and case swapping for free strings
kaleidoscope-lexer
A Lexer Named Kaleidoscope, powered by Swift Macro
GPTEncoder
Swift BPE Encoder/Decoder for OpenAI GPT Models. A programmatic interface for tokenizing text for OpenAI ChatGPT API.
TiktokenSwift
Swift bindings for OpenAI's tiktoken tokenizer using UniFFI. Count tokens, estimate costs, and manage context windows in your iOS and macOS apps
swift-tiktoken
A pure Swift implementation of OpenAI's tiktoken tokenizer
5 packages.