sister-software/mailwoman-tokenizer-v0.6.0-a0
0
Mailwoman SentencePiece Tokenizer v0.6.0-a0
Multi-script SentencePiece tokenizer trained for address parsing. Achieves 0% byte-fallback on CJK, Korean, Thai, and Arabic scripts (down from 36–75% on prior tokenizers).
- Source: https://github.com/sister-software/mailwoman
- License: AGPL-3.0
Training data
2.19 million place-name records from Who's On First across 7 countries:
Format
Byte-fallback rates
Measured on 12 hard multi-script address examples:
Usage
import sentencepiece as spm
tokenizer = spm.SentencePieceProcessor()
tokenizer.load("tokenizer.model")
pieces = tokenizer.encode_as_pieces("東京都新宿区西新宿2-8-1")
# ['▁', '東京', '都', '新宿', '区', '西', '新宿', '2', '-', '8', '-', '1']