Packages for keyword “tokenizer”
These packages are available as a package collection, usable in Xcode or SwiftPM.
swift-tokenizers
High-performance tokenizers
swift-casification
Package for tokenizing and case swapping for free strings
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.
kaleidoscope-lexer
A Lexer Named Kaleidoscope, powered by Swift Macro
sudachi-swift
Swift bindings for the Sudachi Japanese morphological analyzer (sudachi.rs) — on-device tokenization for iOS and macOS via UniFFI
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
8 packages.