MCPcopy Create free account
hub / github.com/SooLab/CGFormer / batch_decode

Method batch_decode

bert/tokenization_utils_base.py:2253–2254  ·  view source on GitHub ↗
(self, sequences: List[List[int]], **kwargs)

Source from the content-addressed store, hash-verified

2251 return encoded_inputs
2252
2253 def batch_decode(self, sequences: List[List[int]], **kwargs) -> List[str]:
2254 return [self.decode(seq, **kwargs) for seq in sequences]
2255
2256 def decode(
2257 self, token_ids: List[int], skip_special_tokens: bool = False, clean_up_tokenization_spaces: bool = True

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected