Byte-Pair Encoding (BPE) Tokenizer This is a simple implementation of the BPE compression algorithm on byte-pairs of a string.