Re:Tokenization for language modeling: BPE vs. Unigram Langu...
by mcyc on Saturday May 31, 2025 @01:54PM
(#44145875)
You can cross whitespace boundaries by setting flag `--split-on-whitespace` to false (it's true by default).
https://github.com/google/sentencepiece/blob/master/doc/opti...
See line 233: https://github.com/google/sentencepiece/blob/master/src/unig...
I would suspect the n-gram counts don't cross pre-token boundaries, but I don't have time to find that in the code right now.