modelzoo.transformers.data_processing.tokenizers.BPETokenizer.BPETokenizer#

class modelzoo.transformers.data_processing.tokenizers.BPETokenizer.BPETokenizer[source]#

Bases: object

Methods

add_token

bpe

decode

encode

get_token_id

__init__(vocab_file, encoder_file, errors='replace', special_tokens=None)[source]#