MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / encode

Method encode

src/framework/tokenizers/llama_bpe.cpp:248–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248std::vector<int32_t> LlamaBpeTokenizer::encode(const std::string & text) const {
249 return vendor::tokenize_bpe(impl_->vocab, text, true);
250}
251
252std::vector<int32_t> LlamaBpeTokenizer::encode(const std::string & text, const bool parse_special) const {
253 return vendor::tokenize_bpe(impl_->vocab, text, parse_special);

Callers

nothing calls this directly

Calls 1

tokenize_bpeFunction · 0.85

Tested by

no test coverage detected