Home
last modified time | relevance | path

Searched refs:SPieceTokenizerLoadType (Results 1 – 10 of 10) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/text/kernels/
Dsentence_piece_tokenizer_op.h37 …SentencePieceTokenizerOp(const std::shared_ptr<SentencePieceVocab> vocab, SPieceTokenizerLoadType
41 … const SPieceTokenizerLoadType load_type, const SPieceTokenizerOutType out_type);
59 SPieceTokenizerLoadType load_type_;
Dsentence_piece_tokenizer_op.cc28 const SPieceTokenizerLoadType load_type, in SentencePieceTokenizerOp()
41 const SPieceTokenizerLoadType load_type, in SentencePieceTokenizerOp()
/third_party/mindspore/mindspore/dataset/text/
Dtransforms.py50 from .utils import JiebaMode, NormalizeForm, to_str, SPieceTokenizerOutType, SPieceTokenizerLoadType
77 SPieceTokenizerLoadType.FILE: cde.SPieceTokenizerLoadType.DE_SPIECE_TOKENIZER_LOAD_KFILE,
78 SPieceTokenizerLoadType.MODEL: cde.SPieceTokenizerLoadType.DE_SPIECE_TOKENIZER_LOAD_KMODEL
D__init__.py31 SPieceTokenizerOutType, SPieceTokenizerLoadType
Dutils.py375 class SPieceTokenizerLoadType(IntEnum): class
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/text/kernels/ir/
Dbindings.cc254 PYBIND_REGISTER(SPieceTokenizerLoadType, 0, ([](const py::module *m) { in __anonf0f064542702()
255 … (void)py::enum_<SPieceTokenizerLoadType>(*m, "SPieceTokenizerLoadType", py::arithmetic()) in __anonf0f064542702()
256 .value("DE_SPIECE_TOKENIZER_LOAD_KFILE", SPieceTokenizerLoadType::kFile) in __anonf0f064542702()
257 .value("DE_SPIECE_TOKENIZER_LOAD_KMODEL", SPieceTokenizerLoadType::kModel) in __anonf0f064542702()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/text/ir/kernels/
Dtext_ir.cc336 …: vocab_(vocab), vocab_path_(std::string()), load_type_(SPieceTokenizerLoadType::kModel), out_type… in SentencePieceTokenizerOperation()
340 …: vocab_(nullptr), vocab_path_(vocab_path), load_type_(SPieceTokenizerLoadType::kFile), out_type_(… in SentencePieceTokenizerOperation()
348 if (load_type_ == SPieceTokenizerLoadType::kModel) { in ValidateParams()
374 if (load_type_ == SPieceTokenizerLoadType::kModel) { in Build()
Dtext_ir.h255 SPieceTokenizerLoadType load_type_;
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/
Dconstants.h145 enum class SPieceTokenizerLoadType { enum
/third_party/mindspore/tests/ut/cpp/dataset/
Dsentence_piece_vocab_op_test.cc165 …new SentencePieceTokenizerOp(spm, SPieceTokenizerLoadType::kModel, SPieceTokenizerOutType::kString… in TEST_F()