Converts an index (integer) in a token (str) using the vocab.
(self, index)
| 263 | return self.encoder.get(token, self.encoder.get(self.unk_token)) |
| 264 | |
| 265 | def _convert_id_to_token(self, index): |
| 266 | """Converts an index (integer) in a token (str) using the vocab.""" |
| 267 | return self.decoder.get(index) |
| 268 | |
| 269 | def convert_tokens_to_string(self, tokens): |
| 270 | """Converts a sequence of tokens (string) in a single string.""" |
nothing calls this directly
no outgoing calls
no test coverage detected