Home
last modified time | relevance | path

Searched refs:GetModelPath (Results 1 – 6 of 6) sorted by relevance

/external/libtextclassifier/native/actions/
Dactions-suggestions_test.cc72 std::string GetModelPath() { return GetTestDataPath("actions/test_data/"); } in GetModelPath() function
79 return ActionsSuggestions::FromPath(GetModelPath() + model_file_name, in LoadTestModel()
83 return ActionsSuggestions::FromPath(GetModelPath() + kHashGramModelFileName, in LoadHashGramTestModel()
88 GetModelPath() + kMultiTaskModelFileName, unilib_.get()); in LoadMultiTaskTestModel()
93 GetModelPath() + kMultiTaskSrP13nModelFileName, unilib_.get()); in LoadMultiTaskSrP13nTestModel()
170 ReadFile(GetModelPath() + kModelFileName); in TEST_F()
224 ReadFile(GetModelPath() + kModelFileName); in TEST_F()
310 ReadFile(GetModelPath() + kModelFileName); in TEST_F()
355 ReadFile(GetModelPath() + kModelFileName); in TestSuggestActionsFromAnnotations()
518 ReadFile(GetModelPath() + kModelFileName); in TestSuggestActionsWithThreshold()
[all …]
/external/libtextclassifier/native/annotator/translate/
Dtranslate_test.cc59 std::string GetModelPath() { return GetTestDataPath("annotator/test_data/"); } in GetModelPath() function
66 GetModelPath() + "lang_id.smfb")), in TranslateAnnotatorTest()
/external/libtextclassifier/native/annotator/
Dannotator_test-include.h34 inline std::string GetModelPath() { in GetModelPath() function
Dannotator_test-include.cc46 std::string GetTestModelPath() { return GetModelPath() + "test_model.fb"; } in GetTestModelPath()
49 return GetModelPath() + "test_vocab_model.fb"; in GetModelWithVocabPath()
81 Annotator::FromPath(GetModelPath() + "wrong_embeddings.fb", unilib_.get(), in TEST_F()
2316 GetModelPath() + "non_existing_model.fb", [](const Model* model) { in TEST_F()
2838 libtextclassifier3::mobile::lang_id::GetLangIdFromFlatbufferFile(GetModelPath() + in TEST_F()
/external/libtextclassifier/native/annotator/datetime/
Dgrammar-parser_test.cc36 std::string GetModelPath() { return GetTestDataPath("annotator/test_data/"); } in GetModelPath() function
46 grammar_buffer_ = ReadFile(GetModelPath() + "datetime.fb"); in SetUp()
Dregex-parser_test.cc42 std::string GetModelPath() { return GetTestDataPath("annotator/test_data/"); } in GetModelPath() function
60 std::string model_buffer = ReadFile(GetModelPath() + "test_model.fb"); in LoadModel()