How to use from the
Use from the
Transformers library
# Gated model: Login with a HF token with gated access permission
hf auth login
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("BeitTigreAI/tigre-spm-tokenizer", device_map="auto")
Quick Links

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Tigre SentencePiece Tokenizer (16K Vocab)

A standalone SentencePiece (Unigram/BPE) subword tokenizer built and optimized for the Tigre language (α‰΅αŒαˆ¬) written in Ge'ez script.

Tokenizer Statistics & Verification

Metric Value Status
Vocabulary Size 16,384 βœ… Standard
Round-Trip Integrity 100% Lossless βœ… Verified
Unknown Token (<unk>) Rate 0.00% βœ… Verified
Punctuation Isolation Clean βœ… Isolated
Ge'ez Wordspace (ፑ) Handling Atomic Token βœ… Verified
Base Architecture SentencePiece βœ… Native

Quickstart Usage

from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("BeitTigreAI/tigre-spm-tokenizer")

text = "αˆ°αˆ‹αˆα‘ αŠ₯ሊ αŠ“α‹­ αˆ‚αŒ‹ α‰΅αŒαˆ¬ αŠ­α‰³α‰ α‰΅ ቱፒ"

# Encode to tokens & IDs
tokens = tokenizer.tokenize(text)
input_ids = tokenizer.encode(text)

print("Tokens:", tokens)
print("IDs   :", input_ids)

# Lossless Decoding
decoded_text = tokenizer.decode(input_ids, clean_up_tokenization_spaces=False)
print("Decoded:", decoded_text)
assert text == decoded_text

Repository Structure

  • tokenizer.model: Native SentencePiece binary model file.
  • tokenizer.json: Serialized fast tokenizer representation for Python/Rust environments.
  • tokenizer_config.json: Metadata and special token configuration mapping.
  • special_tokens_map.json: Explicit <pad>, <s>, </s>, and <unk> assignments.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support