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

Function load_impl

src/models/voxcpm2/tokenizer_text.cpp:271–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271std::shared_ptr<const VoxCPM2TextTokenizer::Impl> load_impl(const VoxCPM2Assets & assets) {
272 auto impl = std::make_shared<VoxCPM2TextTokenizer::Impl>();
273 load_tokenizer_json(assets.resources.require_file("tokenizer_json"), *impl);
274 load_special_tokens(assets.resources.require_file("tokenizer_config"), *impl);
275 build_cjk_split_map(*impl);
276 return impl;
277}
278
279} // namespace
280

Callers 1

VoxCPM2TextTokenizerMethod · 0.70

Calls 3

load_tokenizer_jsonFunction · 0.85
load_special_tokensFunction · 0.85
build_cjk_split_mapFunction · 0.85

Tested by

no test coverage detected