modelzoo.transformers.data_processing.tokenizers.HFTokenizer.HFTokenizer#
- class modelzoo.transformers.data_processing.tokenizers.HFTokenizer.HFTokenizer[source]#
Bases:
objectDesigned to integrate the HF’s Tokenizer library :param vocab_file: A vocabulary file to create the tokenizer from. :type vocab_file: str :param special_tokens: A list or a string representing the special
tokens that are to be added to the tokenizer.
Methods
add_special_tokensadd_tokendecodeencodeget_tokenget_token_idset_eos_pad_tokensAttributes
eospad