Downloads · 30 days
0
riotu-lab/Aranizer-SP-86k
Aranizer-SP-86k is a machine learning model from riotu-lab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Aranizer is an Arabic SentencePiece-based tokenizer designed for efficient and versatile tokenization.
Downloads · 30 days
0
Access
Public
Updated Aug 25, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json4.5 MB · 93%
From the Hugging Face model README
Aranizer is an Arabic SentencePiece-based tokenizer designed for efficient and versatile tokenization.
The Aranizer tokenizer has achieved state-of-the-art results on the Arabic Tokenizers Leaderboard on Hugging Face. Below is a screenshot highlighting this achievement:
<img src="./lb.png" alt="Screenshot showing the Aranizer Tokenizer achieving state of the art" width="800">The Aranizer tokenizer can be easily loaded using the transformers library from Hugging Face. Below is an example of how to load and use the tokenizer in your Python project:
from transformers import AutoTokenizer
# Load the Aranizer tokenizer
tokenizer = AutoTokenizer.from_pretrained("riotu-lab/Aranizer-SP-86k")
# Example usage
text = "اكتب النص العربي"
tokens = tokenizer.tokenize(text)
token_ids = tokenizer.convert_tokens_to_ids(tokens)
print("Tokens:", tokens)
print("Token IDs:", token_ids)
## Citation
@article{koubaa2024arabiangpt,
title={ArabianGPT: Native Arabic GPT-based Large Language Model},
author={Koubaa, Anis and Ammar, Adel and Ghouti, Lahouari and Necar, Omer and Sibaee, Serry},
year={2024},
publisher={Preprints}
}