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
swift-tokenizers
High-performance tokenizers
GPTEncoder
Swift BPE Encoder/Decoder for OpenAI GPT Models. A programmatic interface for tokenizing text for OpenAI ChatGPT API.
sudachi-swift
Swift bindings for the Sudachi Japanese morphological analyzer (sudachi.rs) — on-device tokenization for iOS and macOS via UniFFI
SwiftHighlight
Fast pure-Swift syntax highlighter: 33 languages, declarative Swift/JSON grammars, 13 themes plus VS Code/TextMate import, incremental highlighting, SwiftUI, UIKit, AppKit, HTML and ANSI output.
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
8 packages.