This model is a BPE tokenizer obtained from the concatenated version of
Turkish Book Data Set.
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
This tokenizer can be used to tokenized Turkish texts.
Use the code below to get started with the model.
1from transformers import AutoTokenizer
2
3# 1. Load the tokenizer
4tokenizer = AutoTokenizer.from_pretrained("filiz-yalcin/turkish-books-bpe-tokenizer")
5
6# 2. Encode text to IDs
7encoded = tokenizer("Yalnızlık paylaşılmaz. Paylaşılsa yalnızlık olmaz.")
8print(encoded["input_ids"])
The corpus was obtained using
Turkish Book Data Set. The 'explanation' column's values were concatenated.