A Java implementation of byte-pair encoding (BPE) — the same general compression idea behind tools like modern LLM tokenizers — including a custom ArrayList built from scratch, a token map, and a file ...