| 992 | } |
| 993 | |
| 994 | bool SentencePieceProcessor::IsByte(int id) const { |
| 995 | CHECK_STATUS_OR_RETURN_DEFAULT(false); |
| 996 | return model_->IsByte(id); |
| 997 | } |
| 998 | |
| 999 | int SentencePieceProcessor::unk_id() const { |
| 1000 | const int id = PieceToId(absl::string_view(model_->unk_piece().data())); |