Convert a Token to Id. Lookup of self.vocab
(self, token)
| 531 | raise NotImplementedError('TextTokenizer IdToToken not implemented') |
| 532 | |
| 533 | def TokenToId(self, token): |
| 534 | """Convert a Token to Id. Lookup of self.vocab""" |
| 535 | raise NotImplementedError('TextTokenizer TokenToId not implemented') |
| 536 | |
| 537 | def DecodeIds(self, Ids): |
| 538 | """Convert a list or tokenization object of Ids to a text string""" |
nothing calls this directly
no outgoing calls
no test coverage detected