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