Expand description
Baseline algorithms (FR-002, priority P0 besides BPE):
bytes: one token per byte. The lossless fallback and the baseline every other vocabulary is measured against.char: one token per Unicode character seen in training, with the 256 byte tokens underneath so unseen characters and invalid UTF-8 still round-trip.dictionary: a fixed list of entries. Over bytes it matches the longest entry greedily and falls back to byte tokens; over symbols it is a plain lookup that refuses unknown symbols.
Structs§
Constants§
Functions§
- register
- Register this crate’s algorithms.