| 216 | SentencePieceProcessor::~SentencePieceProcessor() {} |
| 217 | |
| 218 | util::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 | |
| 224 | void SentencePieceProcessor::LoadOrDie(absl::string_view filename) { |
| 225 | CHECK_OK(Load(filename)); |
nothing calls this directly
no test coverage detected