|
Download README.md from flexitok/bpe_ltr_jpn_Jpan_8000_v2: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/flexitok/bpe_ltr_jpn_Jpan_8000_v2/resolve/main/README.md
- Command line
-
hf download hf://flexitok/bpe_ltr_jpn_Jpan_8000_v2/README.md
-
curl -L -o README.md https://huggingface.co/flexitok/bpe_ltr_jpn_Jpan_8000_v2/resolve/main/README.md
1.29 kB
metadata
license: mit
language:
- jpn
tags:
- tokenizer
- bpe
- flexitok
- fineweb2
Byte-Level BPE Tokenizer: jpn_Jpan (8K)
A Byte-Level BPE tokenizer trained on jpn_Jpan data from Fineweb-2-HQ.
Training Details
| Parameter | Value |
|---|---|
| Algorithm | Byte-Level BPE |
| Language | jpn_Jpan |
| Target Vocab Size | 8,000 |
| Final Vocab Size | 9,956 |
| Pre-tokenizer | custom:jpn_Jpan |
| Number handling | ltr_3digit |
| Contraction handling | True |
| Normalizer | NFC |
| Special Tokens | <s>, </s>, <pad>, <unk> |
| Training Shards | 2 |
Usage
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("flexitok/bpe_ltr_jpn_Jpan_8000_v2")
tokens = tokenizer.encode("Hello, world!")
Files
tokenizer.json— Full HuggingFace tokenizervocab.json— Vocabulary mappingmerges.txt— BPE merge rules
Sample Encoding
| Text | Tokens | Token IDs |
|---|---|---|
Hello, world! 12345 This is a test. こんにちは |
H, ell, o, ,, Ġw, or, ld, !, Ġ, 123, 45, ĠT, h, is, Ġis, Ġa, Ġt, est, ., Ġãģĵ |
42, 4980, 81, 14, 2117, 953, 5795, 3, 223, 9470, 4690, 1611, 74, 1257, 4909, 2412, 1086, 3761, 16, 4547 |