Companion
Constants of the tokenizer.
AILIA_TOKENIZER_TYPE_* defines the tokenizer type passed to the constructor, and AILIA_TOKENIZER_FLAG_* defines the tokenizer option.
Properties
Default flag (no option).
Tokenizer for BERT models. Requires a vocabulary file.
Character tokenizer for Japanese BERT models. Requires a MeCab dictionary and a vocabulary file.
WordPiece tokenizer for Japanese BERT models. Requires a MeCab dictionary and a vocabulary file.
Tokenizer for CLIP models.
Tokenizer for Gemma models. Requires a SentencePiece model file.
Tokenizer for GPT-2 models. Requires a vocabulary file and a merge file.
Tokenizer for Llama models. Requires a SentencePiece model file.
Tokenizer for Marian machine translation models. Requires a SentencePiece model file.
Tokenizer for RoBERTa models. Requires a vocabulary file and a merge file.
Tokenizer for T5 models. Requires a SentencePiece model file.
Tokenizer for Whisper models.
Tokenizer for XLM-RoBERTa models. Requires a SentencePiece model file.