How text is cut into the words a model is applied to.
The three named rules are the published pre-tokenizers of the byte-levelencodings: r50k/p50k/gpt2, cl100k_base and o200k_base. They arescanners here rather than regular expressions because the patterns lean onlookahead and possessive quantifiers, and because a tokenizer runs them onceper word over the whole input.