Downloads · 30 days
0
hugohow/creole_reunion_tokenizer
creole_reunion_tokenizer is a machine learning model from hugohow. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This tokenizer is specifically designed for working with Réunion Creole, a language primarily spoken on the island of Réunion. It is based on the Byte Pair Encoding (BPE) model and optimized for the lexical and orthog…
Downloads · 30 days
0
Access
Public
Updated Dec 4, 2024
Repo size
—
Likes
2
Public
Click a slice to open those files.
.json201 KB · 99%
From the Hugging Face model README
This tokenizer is specifically designed for working with Réunion Creole, a language primarily spoken on the island of Réunion. It is based on the Byte Pair Encoding (BPE) model and optimized for the lexical and orthographic specificities of the language.
[CLS]: Start-of-sequence token for classification tasks.[SEP]: Separator token for multi-segment inputs.[PAD]: Padding token.[MASK]: Masking token used for training masked language models.[UNK]: Token for unknown words.You can easily load this tokenizer using the transformers library:
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("hugohow/creole_reunion_tokenizer")
# Example of tokenization
text = "Comment i lé zot tout ?"
tokens = tokenizer.encode(text)
print(tokens)
Hugo How-Choong