| 778 | } |
| 779 | |
| 780 | std::string Tokenizer::decode(const std::vector<int32_t> & ids) const { |
| 781 | std::string result; |
| 782 | for (int32_t id : ids) { |
| 783 | result += token_text(id); |
| 784 | } |
| 785 | return result; |
| 786 | } |
| 787 | |
| 788 | const std::string & Tokenizer::raw_token(int32_t id) const { |
| 789 | static const std::string empty; |
no outgoing calls