| Parameter | Value |
|---|---|
| Algorithm | Byte-Level BPE |
| Language | swe_Latn |
| Target Vocab Size | 4,000 |
| Final Vocab Size | 4,000 |
| Pre-tokenizer | custom:swe_Latn |
| Number handling | individual |
| Contraction handling | True |
| Normalizer | NFC |
| Special Tokens | <s>, </s>, <pad>, <unk> |
| Training Shards | 2 |
1from transformers import AutoTokenizer
2
3tokenizer = AutoTokenizer.from_pretrained("flexitok/bpe_swe_Latn_4000_v2")
4tokens = tokenizer.encode("Hello, world!")tokenizer.json — Full HuggingFace tokenizervocab.json — Vocabulary mappingmerges.txt — BPE merge rules| Text | Tokens | Token IDs |
|---|---|---|
Hello, world! 12345 This is a test. こんにちは | H, ell, o, ,, Ġw, or, ld, !, Ġ, 12, 3, 45, ĠTh, is, Ġis, Ġa, Ġtest, ., Ġ, ã | 43, 420, 82, 15, 696, 242, 627, 4, 176, 1455, 22, 3446, 1298, 311, 1634, 223, 2185, 17, 176, 160 |