欢迎使用MindFormers
特性
开发实践
模型
任务
API
FAQ
mindformers.models.
Tokenizer
Pretrained Tokenizer provides detailed the tokenizer method.
convert_ids_to_tokens
Convert the ids to tokens using vocab mapping
convert_tokens_to_ids
Convert the tokens to ids using vocab mapping
convert_tokens_to_string
Convert the tokens to the string
get_support_list
get_support_list method
num_special_tokens_to_add
Return the special tokens to be added to the ids and ids_pair
show_support_list
show_support_list method
vocab_size
Get the vocab size of the