converts ids to a text string
(self, Ids)
| 769 | return self.sp.PieceToId(token) |
| 770 | |
| 771 | def DecodeIds(self, Ids): |
| 772 | """converts ids to a text string""" |
| 773 | if isinstance(Ids, Tokenization): |
| 774 | Ids = Ids.tokenization |
| 775 | return self.sp.DecodeIds(Ids) |
| 776 | |
| 777 | def DecodeTokens(self, Tokens): |
| 778 | """converts sentencepiece tokens to a text string""" |