tables.bend checks
raw source on the hub · import bend-bpe-tokenizer@0.1.0.0/tables.bend as Tables
GENERATED by dev/gen_tables.py from dev/classify.py's output: the Unicode data the tokenizer needs, as Hugging
Face's tokenizers sees it (its split regex's character classes; its NFC's decompositions, combining classes and
compositions), as balanced search trees. Hangul syllables are computed (nfc.bend), not listed here.
classes: 1155 ranges, codes 1 letter (\p{L}), 2 mark (\p{M}), 3 number (\p{N}), 4 whitespace (\s other than
\r and \n), 5 \r or \n; 0 for anything else
combining classes: 333 ranges (0 for anything not listed)
decompositions: 2060 code points to their full canonical decomposition
compositions: 940 pairs to their primary composite
2 imports
import Base import ./tree.bend as T
Definitions
def classes source · line 12 · raw
0x0c46c789483b48a99efa2c996652d510/tree.RT
def combining source · line 15 · raw
0x0c46c789483b48a99efa2c996652d510/tree.RT
def decompositions source · line 18 · raw
0x0c46c789483b48a99efa2c996652d510/tree.KT
def compositions source · line 21 · raw
0x0c46c789483b48a99efa2c996652d510/tree.PT