Count tokens in a text file.
-
Updated
Oct 4, 2024 - Python
Count tokens in a text file.
Implemented a tokenizer class , some language models techniques and based on those models generating next words.
This is my simple and readable implementation of the Byte Pair Encoding Algorithm and a Bigram Model.
implementation of BPE algorithm and training of the tokens generated
Add a description, image, and links to the tokenizer-nlp topic page so that developers can more easily learn about it.
To associate your repository with the tokenizer-nlp topic, visit your repo's landing page and select "manage topics."