Home
last modified time | relevance | path

Searched refs:SuggestSelection (Results 1 – 4 of 4) sorted by relevance

/external/libtextclassifier/tests/
Dtext-classification-model_test.cc45 TEST(TextClassificationModelTest, SuggestSelection) { in TEST() argument
52 EXPECT_EQ(model->SuggestSelection( in TEST()
58 EXPECT_EQ(model->SuggestSelection("350 Third Street, Cambridge", {0, 27}), in TEST()
62 EXPECT_EQ(std::make_pair(0, 1), model->SuggestSelection("a", {0, 1})); in TEST()
65 EXPECT_EQ(std::make_pair(0, 4), model->SuggestSelection("asdf", {0, 4})); in TEST()
76 model->SuggestSelection("350 Third Street, Cambridge", {0, 3})); in TEST()
78 model->SuggestSelection("350 Third Street, Cambridge", {4, 9})); in TEST()
80 model->SuggestSelection("350 Third Street, Cambridge", {10, 16})); in TEST()
82 model->SuggestSelection("a\nb\nc\n350 Third Street, Cambridge", in TEST()
94 selection = model->SuggestSelection("abc\nBarack Obama", {4, 10}); in TEST()
[all …]
/external/libtextclassifier/smartselect/
Dtext-classification-model.h56 CodepointSpan SuggestSelection(const std::string& context,
Dtext-classification-model.cc272 CodepointSpan TextClassificationModel::SuggestSelection( in SuggestSelection() function in libtextclassifier::TextClassificationModel
/external/libtextclassifier/
Dtextclassifier_jni.cc181 model->SuggestSelection(context_utf8, input_indices); in Java_android_view_textclassifier_SmartSelection_nativeSuggest()