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

Method Load

external/sentencepiece/src/sentencepiece_processor.cc:218–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216SentencePieceProcessor::~SentencePieceProcessor() {}
217
218util::Status SentencePieceProcessor::Load(absl::string_view filename) {
219 auto model_proto = std::make_unique<ModelProto>();
220 RETURN_IF_ERROR(io::LoadModelProto(filename, model_proto.get()));
221 return Load(std::move(model_proto));
222}
223
224void SentencePieceProcessor::LoadOrDie(absl::string_view filename) {
225 CHECK_OK(Load(filename));

Callers

nothing calls this directly

Calls 10

LoadModelProtoFunction · 0.85
OkStatusFunction · 0.85
has_denormalizer_specMethod · 0.80
SetPrefixMatcherMethod · 0.80
prefix_matcherMethod · 0.80
samples_sizeMethod · 0.80
getMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected