| 246 | } |
| 247 | |
| 248 | std::vector<int32_t> LlamaBpeTokenizer::encode(const std::string & text) const { |
| 249 | return vendor::tokenize_bpe(impl_->vocab, text, true); |
| 250 | } |
| 251 | |
| 252 | std::vector<int32_t> LlamaBpeTokenizer::encode(const std::string & text, const bool parse_special) const { |
| 253 | return vendor::tokenize_bpe(impl_->vocab, text, parse_special); |
nothing calls this directly
no test coverage detected