This project implements a sub-word tokenizer typically used for training transformer models. It includes a notebook to illustrate how Python deals with Unicode and the complete implementation of a Byte-Pair Encoding based sub-word tokenizer.
- Python 3.9+
- PyTorch