StringTokenizer
org.llm4s.context.tokens.StringTokenizer
@Stable
trait StringTokenizer
Converts a plain string into a sequence of Tokens using a specific BPE vocabulary.
Implementations are backed by jtokkit encodings and obtained via Tokenizer.lookupStringTokenizer; the interface is kept minimal to allow test doubles without a real encoding registry.
Attributes
- Source
- Tokens.scala
- Graph
-
- Supertypes
Members list
In this article
