Skip to content

tokenizer

Tokenizer

Bases: BaseModel

A tokenizer that can encode and decode strings.

encode instance-attribute

encode: Callable[[str], List[int]]

decode instance-attribute

decode: Callable[[List[int]], str]