Companion

object 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

Link copied to clipboard

Default flag (no option).

Link copied to clipboard

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.

Link copied to clipboard

Tokenizer for CLIP models.

Link copied to clipboard

Tokenizer for Gemma models. Requires a SentencePiece model file.

Link copied to clipboard

Tokenizer for GPT-2 models. Requires a vocabulary file and a merge file.

Link copied to clipboard

Tokenizer for Llama models. Requires a SentencePiece model file.

Link copied to clipboard

Tokenizer for Marian machine translation models. Requires a SentencePiece model file.

Link copied to clipboard

Tokenizer for RoBERTa models. Requires a vocabulary file and a merge file.

Link copied to clipboard

Tokenizer for T5 models. Requires a SentencePiece model file.

Link copied to clipboard

Tokenizer for Whisper models.

Link copied to clipboard

Tokenizer for XLM-RoBERTa models. Requires a SentencePiece model file.