unicode.bend checks
raw source on the hub · import bend-ml-llama@0.3.0.0/unicode.bend as Unicode
Copied unchanged from bend-ml (demos/gpt2/unicode.bend, MIT), generated there by reference/gen_unicode_table.py. Class 1 (\p{N}) is also what SmolLM2's Digits pre-tokenizer splits on (Rust char::is_numeric). GENERATED by reference/gen_unicode_table.py (regex 2026.9.29); do not edit. Non-letter code points >= 128 as (lo, hi, class) triples, sorted: class 1 = digit (\p{N}), 2 = other (not \s, \p{L}, \p{N}), 3 = whitespace (\s). Anything not listed (and every code point above U+1FFFF) is a letter. 939 ranges.
1 import
import Base
Definitions
def non_letters source · line 10 · raw
List<&2, U32>