def convert_tokens_to_ids(self, tokens): return tokenization.convert_by_vocab( self.subwork_tokenizer. _subtoken_string_to_id, # pylint: disable = protected-access tokens)
def convert_ids_to_tokens(self, ids): return convert_by_vocab(self.inv_vocab, ids)
def convert_ids_to_tokens(self, ids): return tokenization.convert_by_vocab(self.inv_vocab, ids)
def convert_tokens_to_ids(self, tokens): return convert_by_vocab(self.vocab, tokens)
def convert_tokens_to_ids(self, tokens): return tokenization.convert_by_vocab(self.vocab, tokens)