This is the supporting code for the article Byte pair Encoding and Data Structures. Please note that more complete implementation of the BPE encoding algorithm is available in the rust-tokenizer crate, the code provided in this repository is designed for educational purpose.
guillaume-be/bpe-example
Supporting code for post on Rust implementation of Byte pair Encoding
RustApache-2.0