Tokenizer
interface Tokenizer
A public interface for tokenization and de-tokenization tasks, especially tailored for handling text encoding and decoding. The primary operations include encode to convert text to a sequence of integers (tokens), and decode to convert a sequence of integers back to text.
The companion object provides methods to obtain an instance of Tokenizer with specified encodings, either by encoding name or model name.