Home
last modified time | relevance | path

Searched refs:model_options (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/
Dtextclassifier_jni.cc223 ModelOptions model_options; in Java_android_view_textclassifier_SmartSelection_nativeGetLanguage() local
224 if (ReadSelectionModelOptions(fd, &model_options)) { in Java_android_view_textclassifier_SmartSelection_nativeGetLanguage()
225 return env->NewStringUTF(model_options.language().c_str()); in Java_android_view_textclassifier_SmartSelection_nativeGetLanguage()
235 ModelOptions model_options; in Java_android_view_textclassifier_SmartSelection_nativeGetVersion() local
236 if (ReadSelectionModelOptions(fd, &model_options)) { in Java_android_view_textclassifier_SmartSelection_nativeGetVersion()
237 return model_options.version(); in Java_android_view_textclassifier_SmartSelection_nativeGetVersion()
/external/libtextclassifier/smartselect/
Dmodel-params.cc31 ModelOptions model_options; in ModelParamsBuilder() local
34 model_options = in ModelParamsBuilder()
120 if (!model_options.use_shared_embeddings()) { in ModelParamsBuilder()
Dtext-classification-model.h127 bool ReadSelectionModelOptions(int fd, ModelOptions* model_options);
Dtext-classification-model.cc209 bool ReadSelectionModelOptions(int fd, ModelOptions* model_options) { in ReadSelectionModelOptions() argument
226 *model_options = in ReadSelectionModelOptions()
/external/libtextclassifier/tests/
Dtext-classification-model_test.cc37 ModelOptions model_options; in TEST() local
38 ASSERT_TRUE(ReadSelectionModelOptions(fd, &model_options)); in TEST()
41 EXPECT_EQ("en", model_options.language()); in TEST()
42 EXPECT_GT(model_options.version(), 0); in TEST()