Home
last modified time | relevance | path

Searched refs:path_to_vocab (Results 1 – 9 of 9) sorted by relevance

/external/tflite-support/tensorflow_lite_support/cc/utils/
Dcommon_utils.cc64 std::vector<std::string> LoadVocabFromFile(const std::string& path_to_vocab) { in LoadVocabFromFile() argument
66 std::ifstream in(path_to_vocab.c_str()); in LoadVocabFromFile()
79 const std::string& path_to_vocab) { in LoadVocabAndIndexFromFile() argument
81 std::ifstream in(path_to_vocab.c_str()); in LoadVocabAndIndexFromFile()
Dcommon_utils.h30 std::vector<std::string> LoadVocabFromFile(const std::string& path_to_vocab);
39 const std::string& path_to_vocab);
/external/tflite-support/tensorflow_lite_support/cc/text/tokenizers/
Dregex_tokenizer.cc48 const std::string& path_to_vocab) in RegexTokenizer() argument
50 token_index_map_{utils::LoadVocabAndIndexFromFile(path_to_vocab)} {
Dbert_tokenizer.h100 explicit BertTokenizer(const std::string& path_to_vocab,
102 : BertTokenizer(utils::LoadVocabFromFile(path_to_vocab), options) {} in BertTokenizer() argument
Dregex_tokenizer.h32 const std::string& path_to_vocab);
/external/tflite-support/tensorflow_lite_support/cc/task/text/qa/
Dbert_question_answerer.h105 const std::string& path_to_vocab);
142 void InitializeBertTokenizer(const std::string& path_to_vocab);
Dbert_question_answerer.cc96 const std::string& path_to_model, const std::string& path_to_vocab) { in CreateBertQuestionAnswererFromFile() argument
104 api_to_init->InitializeBertTokenizer(path_to_vocab); in CreateBertQuestionAnswererFromFile()
369 const std::string& path_to_vocab) { in InitializeBertTokenizer() argument
370 tokenizer_ = absl::make_unique<BertTokenizer>(path_to_vocab); in InitializeBertTokenizer()
/external/libtextclassifier/native/utils/
Dbert_tokenizer.h92 explicit BertTokenizer(const std::string& path_to_vocab,
94 : BertTokenizer(LoadVocabFromFile(path_to_vocab), options) {} in BertTokenizer() argument
/external/tensorflow/tensorflow/lite/g3doc/inference_with_metadata/task_library/
Dcustomized_task_api.md176 const std::string& path_to_vocab // additional model specific files
189 api_to_init->InitializeVocab(path_to_vocab);